Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

parzh/create-package-javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm init package-javascript <name>

Recklessly create npm packages left and right with this single command ☝

Usage

See https://github.com/parzh/create-package-typescript for adding type-safety to the package

npm init package-javascript <name> [--in <path>]

create-package-javascript was designed with npm init … approach in mind (learn more about npm init).

npm init package-javascript my-package
npm init package-javascript my-foo-package --in ./path/to/my-packages/foo

--in

By default, all the files are put to a new directory named after the package name:

cd ~
npm init package-javascript my-package
~/
  my-package/
    package.json # "name": "my-package"

This behavior can be overriden with --in option. For example, this command:

cd ~
npm init package-javascript my-foo-package --in ./path/to/my-packages/foo

… creates these files:

~/path/to/my-packages/
  foo/
    package.json # "name": "my-foo-package"

Different versions

By default, the create-package-javascript@latest is used. To use different version of create-package-javascript, consider this syntax:

npm init package-javascript@<version> <…options>

About

Recklessly create npm packages left and right

Resources

Stars

Watchers

Forks

Packages

No packages published