Skip to content

A cli tool to run whole npm scripts without having to run npm init or npm install

License

Notifications You must be signed in to change notification settings

5c077m4n/pkgplay

Repository files navigation

pkgplay

Linux Test Suite MacOS Test Suite Windows Test Suite Coverage Status

A cli tool to run whole npm scripts without having to npm init or npm install anything!

How many times did you need to automate some small task but didn't because you didn't want to go through the hassle of creating a new npm package just for a few seconds?

Well, now you have your answer! All you need to do is create a file (say index.js...) and then just npx pkgplay (or npm install -g pkgplay and pkgplay)!

CLI arg Uses
-p or --path Get the requested file (may be remote) - default: ./index.js
-s or --script The script that you want to run - default: start

Example file

/**! package.json
 * {
 *      "dependencies": {
 *          "uuid": "8.1.0"
 *      }
 * }
 */

const { v4: uuidv4 } = require('uuid');

console.log(uuidv4());

And then:

npx pkgplay -p=<filepath>

Happy scripting! ;)

About

A cli tool to run whole npm scripts without having to run npm init or npm install

Resources

License

Stars

Watchers

Forks

Packages

No packages published