84 lines
5.1 KiB
JSON
84 lines
5.1 KiB
JSON
|
{
|
||
|
"name": "json",
|
||
|
"description": "a 'json' command for massaging and processing JSON on the command line",
|
||
|
"version": "9.0.1",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/trentm/json.git"
|
||
|
},
|
||
|
"author": {
|
||
|
"name": "Trent Mick",
|
||
|
"email": "trentm@gmail.com",
|
||
|
"url": "http://trentm.com"
|
||
|
},
|
||
|
"main": "./lib/json.js",
|
||
|
"directories": {
|
||
|
"man": "./man/man1"
|
||
|
},
|
||
|
"bin": {
|
||
|
"json": "./lib/json.js"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "make test"
|
||
|
},
|
||
|
"engines": [
|
||
|
"node >=0.6.0"
|
||
|
],
|
||
|
"keywords": [
|
||
|
"json",
|
||
|
"jsontool",
|
||
|
"filter",
|
||
|
"command",
|
||
|
"shell"
|
||
|
],
|
||
|
"devDependencies": {
|
||
|
"uglify-js": "1.1.x",
|
||
|
"nodeunit": "0.8.x",
|
||
|
"ansidiff": "1.0",
|
||
|
"ben": "0.0.x",
|
||
|
"async": "0.1.22",
|
||
|
"semver": "1.1.0"
|
||
|
},
|
||
|
"man": [
|
||
|
"/home/pi/.npm/json/9.0.1/package/man/man1/json.1"
|
||
|
],
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Trent Mick",
|
||
|
"email": "trentm@gmail.com",
|
||
|
"url": "http://trentm.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Yaniv Aknin",
|
||
|
"url": "https://github.com/yaniv-aknin"
|
||
|
},
|
||
|
{
|
||
|
"name": "Fred Kuo",
|
||
|
"url": "https://github.com/fkuo"
|
||
|
},
|
||
|
{
|
||
|
"name": "Bill Pijewski",
|
||
|
"url": "https://github.com/pijewski"
|
||
|
},
|
||
|
{
|
||
|
"name": "Isaac Schlueter",
|
||
|
"url": "https://github.com/isaacs"
|
||
|
},
|
||
|
{
|
||
|
"name": "Andrew O'Brien",
|
||
|
"url": "https://github.com/AndrewO"
|
||
|
}
|
||
|
],
|
||
|
"readme": "`json` is a fast CLI tool for working with JSON. It is a single-file node.js\nscript with no external deps (other than\n[node.js](https://github.com/joyent/node) itself). A quick taste:\n\n $ echo '{\"foo\":\"bar\"}' | json\n {\n \"foo\": \"bar\"\n }\n\n $ echo '{\"foo\":\"bar\"}' | json foo\n bar\n\n $ echo '{\"age\":10}' | json -E 'this.age++'\n {\n \"age\": 11\n }\n\n $ echo '{\"latency\":32,\"req\":\"POST /widgets\"},\n {\"latency\":10,\"req\":\"GET /ping\"}\n ' | json -gaC 'this.latency > 10' req\n POST /widgets\n\nFeatures:\n\n- pretty-printing JSON\n- natural syntax (like JS code) for extracting particular values\n- get details on JSON syntax errors (handy for config files)\n- filter input JSON (see `-E` and `-C` options)\n- fast stream processing\n- JSON validation\n- in-place file editing\n\nSee <http://trentm.com/json> for full docs and examples as a man page.\n\nFollow <a href=\"https://twitter.com/intent/user?screen_name=trentmick\" target=\"_blank\">@trentmick</a>\nfor updates to json.\n\n\n# Installation\n\n1. Get [node](http://nodejs.org).\n\n2. `npm install -g json`\n\n *Note: This used to be called 'jsontool' in the npm registry, but as of\n version 8.0.0 it has taken over the 'json' name. See [npm Package\n Name](#npm-package-name) below.*\n\n**OR manually**:\n\n2. Get the 'json' script and put it on your PATH somewhere (it is a single file\n with no external dependencies). For example:\n\n cd ~/bin\n curl -L https://github.com/trentm/json/raw/master/lib/json.js > json\n chmod 755 json\n\nYou should now have \"json\" on your PATH:\n\n $ json --version\n json 9.0.0\n\n\n**WARNING for Ubuntu/Debian users:** There is a current bug in Debian stable\nsuch that \"apt-get install nodejs\" installed a `nodejs` binary instead of a\n`node` binary. You'll either need to create a symlink for `node`, change the\n`json` command's shebang line to \"#!/usr/bin/env nodejs\" or use\n[chrislea's PPA](https://launchpad.net/~chris-lea/+archive/node.js/) as\ndiscussed on [issue #56](https://github.com/trentm/json/issues/56).\n\n\n# Test suite\n\n make test\n\nYou can also limit (somewhat) which tests are run with the `TEST_ONLY` envvar,\ne.g.:\n\n cd test && TEST_ONLY=executable nodeunit test.js\n\nI test against node 0.4 (less so now), 0.6, 0.8, and 0.10.\n\n\n# License\n\nMIT (see the fine LICENSE.txt file).\n\n\n# Module Usage\n\nSince v1.3.1 you can use \"json\" as a node.js module:\n\n var json = require('json');\n\nHowever, so far the module API isn't that useful and the CLI is the primary\nfocus.\n\n\n# npm Package Name\n\nOnce upon a time, `json` was a different thing (see [zpoley's json-command\nhere](https://github.com/zpoley/json-command)), and this module was\ncalled `jsontool` in npm. As of version 8.0.0 of this module, `npm install json`\nmeans this tool.\n\nIf you see documentation referring to `jsontool`, it is most likely\nreferring to this module.\n\n\n# Alternatives you might prefer\n\n- jq: <http://stedolan.github.io/jq/>\n- json:select: <http://jsonselect.org/>\n- jsonpipe: <https://github.com/dvxhouse/jsonpipe>\n- json-command: <https://github.com/zpoley/json-command>\n- JSONPath: <http://goessner.net/articles/JsonPath/>, <http://code.google.com/p/jsonpath/wiki/Javascript>\n- jsawk: <https://github.com/micha/jsawk>\n- jshon: <http://kmkeen.com/jshon/>\n- json2: <https://github.com/vi/json2>\n",
|
||
|
"readmeFilename": "README.md",
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/trentm/json/issues"
|
||
|
},
|
||
|
"_id": "json@9.0.1",
|
||
|
"dist": {
|
||
|
"shasum": "02a5865ba09a9449f7cdf855169432e0f67f02f0"
|
||
|
},
|
||
|
"_from": "json@9.0.1",
|
||
|
"_resolved": "https://registry.npmjs.org/json/-/json-9.0.1.tgz"
|
||
|
}
|