UNPKG

str_shorten

Version:

Shorten string by character length with word boundary supported

77 lines (76 loc) 2.3 kB
{ "author": "Binh Quan <binhqd@gmail.com>", "name": "str_shorten", "main": "dist-modules", "module": "dist-es6", "jsnext:main": "dist-es6", "description": "Shorten string by character length with word boundary supported", "version": "1.0.18", "keywords": [ "str_shorten", "truncate", "shorten", "string" ], "repository": { "type": "git", "url": "git@github.com:binhqd/str_shorten.git" }, "scripts": { "start": "catalog start docs", "test": "istanbul cover node_modules/.bin/_mocha -- -- -u exports -R spec ./test/test.js", "coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls", "dist:es6": "del-cli ./dist-es6 && cross-env BABEL_ENV=es6 babel ./src --out-dir ./dist-es6", "dist:modules": "del-cli ./dist-modules && cross-env BABEL_ENV=modules babel ./src --out-dir ./dist-modules", "prepublishOnly": "npm run dist:es6 && npm run dist:modules", "gh-pages": "catalog build docs", "gh-pages:deploy": "gh-pages -d docs/build", "preversion": "npm run test", "postpublish": "npm run gh-pages && npm run gh-pages:deploy" }, "license": "MIT", "dependencies": {}, "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.0", "babel-eslint": "^8.2.2", "babel-jest": "^22.4.1", "babel-plugin-syntax-dynamic-import": "^6.18.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.13", "babel-preset-env": "^1.6.1", "babel-preset-react": "^6.24.1", "babel-preset-react-hmre": "^1.1.1", "catalog": "^3.4.0", "chai": "^4.1.2", "coveralls": "^3.0.0", "cross-env": "^5.1.3", "del-cli": "^1.1.0", "eslint": "^4.18.2", "eslint-config-airbnb": "^16.1.0", "eslint-plugin-import": "^2.9.0", "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.7.0", "gh-pages": "^1.1.0", "git-prepush-hook": "^1.0.2", "istanbul": "^0.4.5", "mocha": "^5.0.1", "react": "^16.2.0", "react-addons-test-utils": "^15.6.2", "react-dom": "^16.2.0", "react-github-corner": "^2.1.0" }, "jest": { "collectCoverage": true, "moduleFileExtensions": [ "js", "jsx" ], "moduleDirectories": [ "node_modules", "packages" ] }, "pre-push": [ "test" ] }