{"name":"sum-up","version":"1.0.2","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 --config node_modules/@shinnn/eslintrc-node/rc.json index.js test.js","test":"node test.js --color && node test.js --no-color","coverage":"istanbul cover test.js -- --color","coveralls":"${npm_package_scripts_coverage} && istanbul-coveralls"},"license":"MIT","files":["index.js"],"keywords":["summerize","summary","brief","outline","info","information","description","data","package","color","cli-friendly"],"dependencies":{"chalk":"^1.0.0"},"devDependencies":{"@shinnn/eslintrc-node":"^1.0.2","eslint":"^0.22.1","istanbul":"^0.3.15","istanbul-coveralls":"^1.0.3","tape":"^4.0.0"},"gitHead":"75c74abb8c3628679715d2af046fc17d900ff78f","bugs":{"url":"https://github.com/shinnn/sum-up/issues"},"_id":"sum-up@1.0.2","_shasum":"e05e5f788cb4d0c570759013ad49442c7b849c88","_from":".","_npmVersion":"2.11.0","_nodeVersion":"2.2.1","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"dist":{"shasum":"e05e5f788cb4d0c570759013ad49442c7b849c88","tarball":"http://registry-npm.ywwl.com/sum-up/download/sum-up-1.0.2.tgz","integrity":"sha512-YdaS0Pya2xCEX4jghVtREQwRb11epX/xGSflRD9Ru99e8HI0DcX2bb3+SWVA+pDqLKff/PG/P3xkYys9yWMqcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNITv2P1UHNwNdlF8cyPaIKcGKt3wosYtEG8v/vzGLWwIgTjG4BO4jNysxrVCTKnf+vQkKLkKL6INIMGFeqDTqJ6Y="}],"size":2367,"noattachment":false,"key":"/sum-up/-/sum-up-1.0.2.tgz"},"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":1433942204697,"_cnpm_publish_time":1433942204697,"dist-tags":{"latest":"3.0.1"}}