UNPKG

json-viewer

Version:

Pretty JSON viewer for the terminal

75 lines (74 loc) 2.14 kB
{ "name": "json-viewer", "version": "2.2.0", "description": "Pretty JSON viewer for the terminal", "main": "lib/index.js", "scripts": { "start": "npm run build && node ./lib", "start:bin": "node ./bin/json-cli", "build": "cross-env BABEL_ENV=prod npm run transpile && npm run compress", "transpile": "babel src --out-dir lib", "compress": "uglifyjs lib/json-viewer.js -m -c -o lib/json-viewer.js", "lint": "eslint --ext .js --ignore-path .gitignore .", "lint:fix": "npm run lint -- --fix", "test": "cross-env BABEL_ENV=test npm run test:unit", "test:watch": "cross-env BABEL_ENV=test npm run test:unit -- -w -R dot", "test:unit": "mocha --compilers js:babel-core/register 'test/**/*.spec.js' --require babel-polyfill", "test:live": "npm run test && npm run build && npm pack && npm install -g json-viewer-*.tgz", "coverage": "cross-env BABEL_ENV=test nyc --reporter=lcov npm run test:unit", "coverage:html": "cross-env BABEL_ENV=test nyc --reporter=html npm run test:unit" }, "keywords": [ "json", "cli", "viewer", "reader", "cat" ], "files": [ "lib", "bin" ], "author": "mjurczyk", "license": "MIT", "bin": { "json": "./bin/json-cli" }, "repository": { "type": "git", "url": "https://github.com/mjurczyk/json-viewer" }, "dependencies": { "colors": "1.1.2", "fs-jetpack": "1.2.0", "ramda": "0.25.0", "yargs": "9.0.1", "babel-polyfill": "6.26.0" }, "devDependencies": { "babel": "6.5.2", "babel-cli": "^6.26.0", "babel-eslint": "8.0.1", "babel-plugin-istanbul": "4.1.5", "babel-plugin-module-resolver": "2.7.1", "babel-plugin-rewire": "1.1.0", "babel-preset-es2015": "6.6.0", "babel-preset-stage-0": "6.24.1", "babelify": "7.2.0", "chai": "4.1.2", "cross-env": "5.1.0", "eslint": "4.8.0", "mocha": "4.0.0", "nyc": "11.2.1", "sinon": "4.0.1", "sinon-chai": "2.14.0", "uglify-js": "3.1.4" }, "nyc": { "require": [ "./test/helpers/babel-polyfill.js" ], "sourceMap": false, "instrument": false } }