0.1.8 • Published 6 years ago

npm-initer v0.1.8

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

npm-initer

NPM

Initialize NPM package.

npm-cloner can be used for cloning to GitHub. npm-push can be used to publish changes.

npm-init [flags] [description]
# [description]: description of package
# [-n|--name]: name of package (<directory name>)
# [-v|--version]: version of package (0.0.0)
# [-m|--main]: main file of package (index.js)
# [-s|--scripts]: scripts of package (test=exit)
# [-k|--keywords]: keywords of package (expect,us)
# [-a|--author]: author of package (anonymous)
# [-l|--license]: license of package (MIT)
# [--links]: readme links of package
# [--index]: index.js template of package
# [--index-file]: index.js template file of package
# [--readme]: README.md template of package
# [--readme-file]: README.md template file of package
# [--help]: show help 
# [[optional environment variables]]
# NPM_INIT_NAME: name of package (<directory name>)
# NPM_INIT_VERSION: version of package (0.0.0)
# NPM_INIT_DESCRIPTION: description of package
# NPM_INIT_MAIN: main file of package (index.js)
# NPM_INIT_SCRIPTS: scripts of package (test=exit)
# NPM_INIT_KEYWORDS: keywords of package (expect,us)
# NPM_INIT_AUTHOR: author of package (anonymous)
# NPM_INIT_LICENSE: license of package (MIT)
# NPM_INIT_LINKS: readme links of package
# NPM_INIT_INDEX: index.js template of package
# NPM_INIT_INDEX_FILE: index.js template file of package
# NPM_INIT_README: README.md temple of package
# NPM_INIT_README_FILE: README.md template file of package

cd alpha-go
npm-init "Lets defeat Go players" --keywords "alpha,go"
# "alpha-go@0.0.0" created

cd alpha-go
NPM_INIT_LINKS="Alpha=https://abc.xyz;Go=https://en.wikipedia.org/wiki/Go_(game)"
NPM_INIT_INDEX="function \${name}() {\n};\nmodule.exports = \${name};\n"
NPM_INIT_README="# \${name}\n\${description}\n"
npm-init "Lets defeat Go players" -k "alpha,go" --version "0.0.1"
# "alpha-go@0.0.1" created
# index.js:
# - function alpha-go() {
# - };
# - module.exports = aplha-go;
# README.md:
# - # alpha-go
# - Lets defeat [Go] players
# - 
# - 
# - [Go]: https://en.wikipedia.org/wiki/Go_(game)

cd alpha-go
NPM_INIT_LINKS="Alpha=https://abc.xyz;Go=https://en.wikipedia.org/wiki/Go_(game)"
NPM_INIT_INDEX_FILE="/home/index.js.template"
NPM_INIT_README_FILE="/home/README.md.template"
npm-init "Lets defeat Go players" -k "alpha,go" -v "0.0.1"
# /home/index.js.template:
# - function ${name} {};
# /home/README.md.template:
# - # ${name}
# - 
# - ${description}.
# - 
# - ```javascript
# - const ${name} = require('${name}');
# - // ${name}(...)
# - ```
# "alpha-go@0.0.1" created
# index.js:
# - function alpha-go() {};
# README.md:
# - # alpha-go
# - 
# - Lets defeat [Go] players.
# - 
# - ```javascript
# - const alpha-go = require('alpha-go');
# - // alpha-go(...)
# - ```
# - 
# - 
# - [Go]: https://en.wikipedia.org/wiki/Go_(game)
0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago