create-package-typescript

0.1.2 • Public • Published

npm init package-typescript <name>

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

Usage

See https://github.com/parzh/create-package-javascript for pure-JavaScipt alternative

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

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

npm init package-typescript my-package
npm init package-typescript 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-typescript 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-typescript 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-typescript@latest is used. To use different version of create-package-typescript, consider this syntax:

npm init package-typescript@<version> options>

Readme

Keywords

none

Package Sidebar

Install

npm i create-package-typescript

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

7.76 kB

Total Files

11

Last publish

Collaborators

  • parzhitsky