# js

> A better `node -p`.

Latest version **0.1.0** (published 2013-04-24) · 0 weekly downloads

## Install

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

Provides the command `js`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-04-24 |
| First published | 2013-04-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marco Aurelio |
| Maintainers | coreh |

## Links

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

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ~1.1.1

## Recent versions

- 0.1.0 (latest) — 2013-04-24
- 0.0.1 — 2013-04-22

## README

# js 

**js** is a a better alternative to `node -p`. It will automatically convert data from and to JSON string representations, and will automatically expose enviroment variables as globals preceded with `$`.

## Usage

```bash
js <javascript>
```

## Examples

Using math

```bash
js 2+2
```

Read a field from a JSON file

```bash
js stdin.version < package.json
```

Add a field to a JSON file on the fly

```bash
js 'stdin.foo = "bar", stdin' < in.json > out.json
```

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