js

0.1.0 • Public • Published

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

js <javascript>

Examples

Using math

js 2+2

Read a field from a JSON file

js stdin.version < package.json

Add a field to a JSON file on the fly

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    24,470
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    24,470
  • 0.0.1
    2

Package Sidebar

Install

npm i js

Weekly Downloads

24,472

Version

0.1.0

License

none

Last publish

Collaborators

  • coreh