UNPKG

truncate-text-between-words

Version:

Truncates the text at the last space before the given length.

49 lines (48 loc) 1.21 kB
{ "name": "truncate-text-between-words", "version": "1.2.2", "description": "Truncates the text at the last space before the given length.", "sideEffects": false, "main": "lib/index.cjs", "module": "lib/index.mjs", "files": [ "lib/**/*" ], "scripts": { "prepublishOnly": "npm run test:once", "prebuild": "del-cli lib/*", "build": "rollup -c", "test:once": "jest", "test:watch": "jest --watchAll" }, "repository": { "type": "git", "url": "git+https://github.com/danielvigaru/truncate-text-between-words.git" }, "keywords": [ "text", "truncate", "truncation", "truncated", "shorten", "split", "ellipsis" ], "author": "Daniel Vigaru", "license": "ISC", "bugs": { "url": "https://github.com/danielvigaru/truncate-text-between-words/issues" }, "homepage": "https://github.com/danielvigaru/truncate-text-between-words#readme", "devDependencies": { "@jest/globals": "^29.7.0", "@rollup/plugin-typescript": "^12.1.2", "@types/jest": "^29.5.12", "del-cli": "^6.0.0", "jest": "^29.7.0", "rollup": "^4.28.1", "ts-jest": "^29.2.5", "tslib": "^2.8.1", "typescript": "^5.1.3" } }