0.0.31 • Published 3 years ago

pkgplay v0.0.31

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

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 argUses
-p or --pathGet the requested file (may be remote) - default: ./index.js
-s or --scriptThe 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! ;)

0.0.30

3 years ago

0.0.31

3 years ago

0.0.29

4 years ago

0.0.28

4 years ago

0.0.27

4 years ago

0.0.26

4 years ago

0.0.25

4 years ago

0.0.21

4 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago