Packaging library for the Salesforce packaging platform
npm install @salesforce/packaging  
A TypeScript library for packaging metadata in your Salesforce project. This library supports both First-Generation packaging (1GP) and Second-Generation packaging (2GP).
There are 4 main classes to use from this library:
1. Package1Version - Work with 1st generation package versions.
1. Package - Work with 2nd generation packages.
1. PackageVersion - Work with 2nd generation package versions.
1. SubscriberPackageVersion - Work with 2nd generation subscriber package versions.
Please reference the API Documentation for complete details of code and types.
If you are interested in contributing, please take a look at the CONTRIBUTING guide.