0.1.3 • Published 6 years ago

nano-scripts v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

nano-scripts

These are some build-scripts for npm. Mainly for checking cost-of-modules with a single command.

Getting Started

This is how we roll:

Installing

$ npm i nano-scripts

and copy the scripts section of the package.json in your own package.json.

...
"scripts": {
	...
	"cost": "node node_modules/nano-scripts/cost.js",
	"license": "node node_modules/nano-scripts/license.js"
}
...

or you could run

$ node node_modules/nano-scripts/setup.js i

Now you can use the npm run as defined in package.json.

Uninstall

$ node node_modules/nano-scripts/setup.js un

or remove the scripts for cost and license in your package.json.

$ npm un nano-scripts

Usage

$ npm run cost -- --no-install --include-dev

> nano-scripts@0.1.1 cost ~/nano-scripts
> node cost.js "--no-install" "--include-dev"


Calculating...


┌─────────────────┬─────────────┬───────┐
│ name            │ children    │ size  │
├─────────────────┼─────────────┼───────┤
│ license-checker │ 67          │ 1.23M │
├─────────────────┼─────────────┼───────┤
│ cli-table2      │ 8           │ 1.02M │
├─────────────────┼─────────────┼───────┤
│ cost-of-modules │ 10          │ 0.45M │
├─────────────────┼─────────────┼───────┤
│ cli-table       │ 1           │ 0.15M │
├─────────────────┼─────────────┼───────┤
│ 4 modules       │ 60 children │ 2.18M │
└─────────────────┴─────────────┴───────┘
$ npm run license

> nano-scripts@0.1.1 license ~/nano-scripts
> node license.js

license             repository                                                          name @ version
...
MIT                 https://github.com/sindresorhus/ansi-regex                    ansi-regex @ 0.2.1
MIT                 https://github.com/sindresorhus/ansi-regex                    ansi-regex @ 2.0.0
MIT                 https://github.com/sindresorhus/ansi-styles                  ansi-styles @ 1.1.0
...

Built With

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.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