UNPKG

@fiquu/shorten

Version:

Shortens a string (truncate) optionally keeping whole words.

49 lines (48 loc) 1.27 kB
{ "name": "@fiquu/shorten", "version": "1.0.7", "description": "Shortens a string (truncate) optionally keeping whole words.", "main": "lib/index.js", "scripts": { "test": "nyc mocha -r ts-node/register 'test/**/*.spec.ts'", "postversion": "git push --follow-tags", "build": "tsc && npm run docs", "docs": "typedoc", "prepack": "tsc" }, "repository": { "type": "git", "url": "git+https://github.com/fiquu/shorten.git" }, "keywords": [ "shorten", "truncate", "string", "words", "ellipsis" ], "author": "fiquu (https://github.com/fiquu) <hi@fiquu.dev>", "license": "MIT", "bugs": { "url": "https://github.com/fiquu/shorten/issues" }, "homepage": "https://github.com/fiquu/shorten#readme", "dependencies": {}, "devDependencies": { "@fiquu/eslint-config": "^4.0.1", "@types/chai": "^4.2.17", "@types/faker": "^5.5.3", "@types/mocha": "^8.2.2", "@types/node": "^14.14.43", "@typescript-eslint/eslint-plugin": "^4.22.0", "@typescript-eslint/parser": "^4.22.0", "chai": "^4.3.4", "eslint": "^7.25.0", "faker": "^5.5.3", "mocha": "^8.3.2", "nyc": "^15.1.0", "ts-node": "^9.1.1", "typedoc": "^0.20.36", "typescript": "^4.2.4" } }