This package has been deprecated

Author message:

this package is no longer maintained

nano-scripts

0.1.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nano-scripts

Weekly Downloads

1

Version

0.1.3

License

MIT

Last publish

Collaborators

  • vardrop