create-ps is a CLI tool which helps you to create the foundations for an npm
package, saving you time from creating new files and folders.
You can view a demo of create-ps here.
npm install -g create-ps
Navigate to your working directory and run the following command:
cps [packageName]
Note
By default, packages are set up to use EcmaScript (ESM). To use CommonJS (CJS), run the command with the --cjs
option instead.
Make sure to replace [packageName]
with the name of your package. Once the command is ran, select which files/directories you would like to include and fill out any prompts.
You can also configure any new or pre-existing package.json
with various information about the package by running the following command:
cps pkg-config
View more descriptive information and an exampls of this command here.
©️ 2024 · Licensed under the MIT License.