# pkgplay

> A package to inline the package.json file and use small single files for js automation and simple tasks.

Latest version **0.0.31** (published 2021-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install pkgplay
pnpm add pkgplay
yarn add pkgplay
bun add pkgplay
```

Provides the command `pkgplay`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.31 |
| Published | 2021-01-27 |
| First published | 2020-05-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Roee Shapira |
| Maintainers | 5c077m4n |
| Keywords | inline, package.json |

## Links

- npm: https://www.npmjs.com/package/pkgplay
- npm.io page: https://npm.io/package/pkgplay

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.31 (latest) — 2021-01-27
- 0.0.30 — 2021-01-27
- 0.0.29 — 2020-09-23
- 0.0.28 — 2020-09-23
- 0.0.27 — 2020-09-23
- 0.0.26 — 2020-08-23
- 0.0.25 — 2020-08-23
- 0.0.21 — 2020-05-27
- 0.0.19 — 2020-05-26
- 0.0.18 — 2020-05-26
- 0.0.17 — 2020-05-25
- 0.0.16 — 2020-05-25
- 0.0.15 — 2020-05-25
- 0.0.14 — 2020-05-25
- 0.0.13 — 2020-05-25
- … 4 more at https://npm.io/package/pkgplay/versions

## README

# pkgplay

[![Linux Test Suite](https://github.com/5c077m4n/pkgplay/workflows/Linux%20Testing%20Suite/badge.svg)](https://github.com/5c077m4n/pkgplay/actions?query=workflow%3A%22Linux+Test+Suite%22)
[![MacOS Test Suite](https://github.com/5c077m4n/pkgplay/workflows/MacOS%20Testing%20Suite/badge.svg)](https://github.com/5c077m4n/pkgplay/actions?query=workflow%3A%22MacOS+Test+Suite%22)
[![Windows Test Suite](https://github.com/5c077m4n/pkgplay/workflows/Windows%20Testing%20Suite/badge.svg)](https://github.com/5c077m4n/pkgplay/actions?query=workflow%3A%22Windows+Test+Suite%22)
[![Coverage Status](https://coveralls.io/repos/github/5c077m4n/pkgplay/badge.svg?branch=master)](https://coveralls.io/github/5c077m4n/pkgplay?branch=master)

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

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

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

console.log(uuidv4());
```

And then:

```bash
npx pkgplay -p=<filepath>
```

*Happy scripting! ;)*

---
_Source: https://npm.io/package/pkgplay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
