js-snip
Version:
Universal JavaScript library for clamping HTML text elements.
67 lines (66 loc) • 2.17 kB
JSON
{
"name": "js-snip",
"version": "1.2.0",
"description": "Universal JavaScript library for clamping HTML text elements.",
"author": "Andrej Bilec <andrej.bilec@gmail.com>",
"license": "MIT",
"scripts": {
"build": "rollup -c",
"lint": "eslint './**/*.{js,ts}'",
"lint:fix": "eslint './**/*.{js,ts}' --fix",
"dev": "NODE_ENV=development rollup -c",
"es-check": "es-check es5 dist/index.js",
"test:open": "yarn instrument && yarn build && cypress open",
"test:run": "yarn instrument && yarn build && cypress run --browser chrome",
"test": "yarn test:run && yarn coverage && yarn es-check",
"instrument": "nyc instrument src instrumented",
"coverage": "nyc report --reporter=text --reporter=text-summary",
"prepare": "yarn build"
},
"main": "dist/index.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.16.4",
"@babel/preset-typescript": "^7.16.0",
"@cypress/code-coverage": "^3.9.5",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"@typescript-eslint/parser": "^4.22.0",
"cypress": "^12.5.1",
"es-check": "^7.1.0",
"eslint": "^7.25.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-cypress": "^2.11.3",
"eslint-plugin-import": "^2.23.0",
"eslint-plugin-js-snip": "file:eslint-plugin-js-snip",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "^5.1.0",
"prettier": "^2.5.1",
"rollup": "^2.46.0",
"rollup-plugin-dts": "^3.0.1",
"rollup-plugin-serve": "^1.1.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.2.4"
},
"homepage": "https://github.com/ajobi/js-snip",
"repository": "https://github.com/ajobi/js-snip.git",
"keywords": [
"clamp",
"ellipsis",
"snip",
"snip-text",
"cut-text",
"clamp-text",
"truncate-text",
"multiline-text"
]
}