Skip to content

inttter/create-ps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-ps

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.

NPM Weekly Downloads NPM version License Kofi Post


You can view a video demo of running create-ps here.

Why?

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.

Installation

npm install -g create-ps

Getting Started

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.

Commands

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

License

©️ 2024 · Licensed under the MIT License. See here for more information.