{"name":"sum-up","version":"1.0.3","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 @shinnn/node-legacy index.js test.js","test":"node --strong_mode test.js --color && node test.js --no-color","coverage":"node --strong_mode node_modules/.bin/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/eslint-config-node-legacy":"^2.0.0","eslint":"^2.4.0","istanbul":"^0.4.2","tape":"^4.5.1"},"gitHead":"a69ca55de273f1dc8640befe4f9939bd29c12dce","bugs":{"url":"https://github.com/shinnn/sum-up/issues"},"_id":"sum-up@1.0.3","_shasum":"1c661f667057f63bcb7875aa1438bc162525156e","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.9.0","_npmUser":{"name":"shinnn","email":"snnskwtnb@gmail.com"},"dist":{"shasum":"1c661f667057f63bcb7875aa1438bc162525156e","tarball":"http://registry-npm.ywwl.com/sum-up/download/sum-up-1.0.3.tgz","integrity":"sha512-zw5P8gnhiqokJUWRdR6F4kIIIke0+ubQSGyYUY506GCbJWtV7F6Xuy0j6S125eSX2oF+a8KdivsZ8PlVEH0Mcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDIi5ctmVws1SfZgYDyxbDoIQH+bWdzsNYPt5OAoif2TAiBc5MySN3ofh9NQ69Mz/vZSma+2DR4Ss7B4UdG6e+Jj2Q=="}],"size":2490,"noattachment":false,"key":"/sum-up/-/sum-up-1.0.3.tgz"},"maintainers":[{"name":"shinnn","email":"snnskwtnb@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sum-up-1.0.3.tgz_1458736084775_0.2654310546349734"},"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":1458736085327,"_cnpm_publish_time":1458736085327,"dist-tags":{"latest":"3.0.1"}}