{"name":"sum-up","version":"3.0.1","description":"Summarize package information","repository":{"type":"git","url":"git+https://github.com/shinnn/sum-up.git"},"homepage":"https://github.com/shinnn/sum-up","author":{"name":"Shinnosuke Watanabe","url":"https://github.com/shinnn"},"scripts":{"pretest":"eslint --fix --format=codeframe index.js test.js","test-no-coverage":"node test.js --color && node test.js --no-color","test":"nyc --reporter=html --reporter=text npm run-script test-no-coverage --silent"},"license":"ISC","files":["index.js"],"keywords":["summerize","summary","brief","outline","info","information","description","data","package","color","colour","cli-friendly"],"dependencies":{"chalk":"^2.3.0","inspect-with-kind":"^1.0.3"},"devDependencies":{"@shinnn/eslint-config-node":"^5.0.0","ansi-styles":"^3.2.0","eslint":"^4.13.0","nyc":"^11.4.0","tape":"^4.8.0"},"eslintConfig":{"extends":"@shinnn/node"},"gitHead":"2b0bed8cc5be2429e3631f054b336b4e9b2cecc9","bugs":{"url":"https://github.com/shinnn/sum-up/issues"},"_id":"sum-up@3.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.2.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"integrity":"sha512-FuYt7pQaWs1cvLtk+sM7f1f7/2Itop5MkDsPlR7jjTItP758MV22gbRXoQ2t0Q08WM1XbtyY8nNy20GE8GlIXg==","shasum":"b4d3f6fd3b3cfbea01da2368bf3b17f52e218144","tarball":"http://registry-npm.ywwl.com/sum-up/download/sum-up-3.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICwEI+0PxMeSrgjsU2Nngyx/J7RKlGPCqUf9v45g1KF6AiEAo8DkNnfW/1o8erObCo+Ecxjnpgn96u5kdxzKN9wP8Ro="}],"size":2351,"noattachment":false,"key":"/sum-up/-/sum-up-3.0.1.tgz"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sum-up-3.0.1.tgz_1512969416713_0.13976735365577042"},"directories":{},"readme":"# sum-up\n\n[![npm version](https://img.shields.io/npm/v/sum-up.svg)](https://www.npmjs.com/package/sum-up)\n[![Build Status](https://travis-ci.org/shinnn/sum-up.svg?branch=master)](https://travis-ci.org/shinnn/sum-up)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/sum-up.svg)](https://coveralls.io/r/shinnn/sum-up)\n\nSummarize package information\n\n```javascript\nconst sumUp = require('sum-up');\nconsole.log(sumUp(require('./package.json')));\n```\n\n![Screenshot](./screenshot.png \"Screenshot\")\n\nIt helps your CLI tool to display information with `--help` flag.\n\n## Installation\n\n[Use npm.](https://docs.npmjs.com/cli/install)\n\n```\nnpm install sum-up\n```\n\n## API\n\n```javascript\nconst sumUp = require('sum-up');\n```\n\n### sumUp(*pkgData* [, *option*])\n\n*pkgData*: `Object`  \n*option*: `Object`  \nReturn: `string`\n\nIt joins the `name`, `version`, `homepage` and `description` properties (all is optional) of the first argument into a string colorized with [ANSI escape code](https://github.com/sindresorhus/ansi-styles).\n\n#### option.color\n\nType: `boolean`  \nDefault: `true` if [the environment supports colors](https://github.com/sindresorhus/supports-color), otherwise `false`\n\n`false` omits all ANSI escape code from the string.\n\n```javascript\nconst data = {\n  name: 'cli-name',\n  version: '0.6.11',\n  description: 'My CLI tool.'\n}\n\nsumUp(data); //=> '\\u001b[36mcli-name\\u001b[39m \\u001b[90mv0.6.11\\u001b[39m\\nMy CLI tool.'\nsumUp(data, {color: false}); //=> 'cli-name v0.6.11\\nMy CLI tool.'\n```\n\n## License\n\n[ISC License](./LICENSE) © 2017 Shinnosuke Watanabe\n","publish_time":1512969416880,"_cnpm_publish_time":1512969416880,"dist-tags":{"latest":"3.0.1"}}