This project is deprecated. Scripting now includes built-in npm package support, so this standalone package manager is no longer needed. This repository is kept for historical reference only.
- Open the npm Packages page in the Scripting app.
- Search for and install the packages your script needs.
- Declare those packages in your script project's
package.jsonfile so that its dependencies are tracked and available to the script.
For example, create or update package.json in the root of your script project:
{
"dependencies": {
"dayjs": "^1.11.13"
}
}Then import the package in your script as usual:
import dayjs from "dayjs";Please use the built-in npm package workflow in Scripting for all new projects.