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 video demo of running create-ps here.
It saves time. I don't want to repeatedly create new files that I know I'm going to want to make every time I want to make a new package. Toggling which files I want and don't want makes this faster than manually creating the files and folders.
npm install -g create-ps
[!TIP] To create a .mjs (ESM/EcmaScript) file and use
import
statements, run the command with the--esm
flag.
-
Navigate to the directory you are going to create your package in.
-
Run
cps <packageName>
in the working directory of the package folder, replacing<packageName>
with the name of your package. -
Select which files you'd like to include and exclude.
Command | Description | Aliases |
---|---|---|
cps pkg-config |
Adds/customises different fields in your package.json . For the license field, see here for correct identifiers. You can also configure existing an existing package.json . |
N/A |
©️ 2024
· Licensed under the MIT License. See here for more information.