# js **Repository Path**: mirrors_TooTallNate/js ## Basic Information - **Project Name**: js - **Description**: A better `node -p` - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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 ``` ## 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 ```