{"name":"text-ellipsis","version":"1.0.3","description":"Cut a string if too long","main":"lib/index.js","scripts":{"clean":"rimraf lib dist","build":"babel index.js --out-dir lib","build:umd":"webpack index.js dist/text-ellipsis.js && set NODE_ENV=production&& webpack index.js dist/text-ellipsis.min.js","lint":"eslint index.js","test":"_mocha --compilers js:babel/register","prepublish":"npm run lint && npm run test && npm run clean && npm run build && npm run build:umd"},"keywords":["text","ellipsis","string","overflow"],"repository":{"type":"git","url":"git+https://github.com/chtefi/text-ellipsis.git"},"author":{"name":"Stéphane DEROSIAUX"},"license":"MIT","bugs":{"url":"https://github.com/chtefi/text-ellipsis/issues"},"homepage":"https://github.com/chtefi/text-ellipsis#readme","devDependencies":{"babel":"^5.8.23","babel-core":"^5.8.24","babel-loader":"^5.3.2","chai":"^3.2.0","eslint":"^1.4.1","eslint-config-airbnb":"0.0.8","mocha":"^2.3.2","rimraf":"^2.4.3","webpack":"^1.12.1"},"gitHead":"cc2bb93d76d4bce73800c54d74ebbdc2d175ba2c","_id":"text-ellipsis@1.0.3","_shasum":"b7991ca1518eaef2603252e26dc6330a61b44348","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"chtefi","email":"derste@gmail.com"},"maintainers":[{"name":"chtefi","email":"derste@gmail.com"}],"dist":{"shasum":"b7991ca1518eaef2603252e26dc6330a61b44348","tarball":"http://registry-npm.ywwl.com/text-ellipsis/download/text-ellipsis-1.0.3.tgz","integrity":"sha512-k+qJ/Q+pMThYjniWXa6mY8IU75XZXGUXumvbmKPsO6IQckPs5wlI6TvXae5yj+MBqmPJIseGfjO/aeLWE2B1aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCW+RsoJ39BoaT6Qj2TLYTez8FnY+rXBFElT0GHfPiaAIgMeyWelfrGsTOYm/4vH8TDusx7Hi6X0dzE/sIWCAHmQY="}],"size":5405,"noattachment":false,"key":"/text-ellipsis/-/text-ellipsis-1.0.3.tgz"},"directories":{},"readme":"# text-ellipsis [![Build Status](https://travis-ci.org/chtefi/text-ellipsis.svg)](https://travis-ci.org/chtefi/text-ellipsis)\r\n> Cut off a string if too long\r\n\r\n## Why\r\n\r\nYou always want to cut long strings.\r\n\r\n## Install\r\n\r\n```shell\r\n$ npm install --save text-ellipsis\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nvar ellipsis = require('text-ellipsis');\r\n\r\nvar short = ellipsis('a very long text', 10);\r\nconsole.log(short);\r\n// \"a very ...\"\r\n\r\nvar short = ellipsis('a very long text', 10, { side: 'start' });\r\nconsole.log(short);\r\n// \"...ng text\"\r\n\r\nvar short = ellipsis('a very long text', 10, { ellipsis: ' END' });\r\nconsole.log(short);\r\n// \"a very END\"\r\n```\r\n\r\n","publish_time":1442337007513,"_cnpm_publish_time":1442337007513,"dist-tags":{"latest":"1.0.3"}}