use-line-clamp
Version:
React.js hook to detect if text will clamp in X number of lines
55 lines (54 loc) • 1.41 kB
JSON
{
"name": "use-line-clamp",
"description": "React.js hook to detect if text will clamp in X number of lines",
"license": "MIT",
"version": "1.0.4",
"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"author": {
"email": "victor@vimtor.io",
"name": "Victor Navarro",
"url": "https://vimtor.io"
},
"files": [
"dist/**"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --sourcemap --minify --dts --external react",
"format": "prettier --write \"./**/*.{ts,tsx,md,json}\""
},
"dependencies": {
"lodash.debounce": "^4.0.8"
},
"devDependencies": {
"@types/lodash.debounce": "4.0.7",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"prettier": "2.8.3",
"react-dom": "^18.2.0",
"typescript": "^4.9.3",
"vite": "^4.0.4",
"@vitejs/plugin-react": "3.0.1",
"tsup": "6.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"homepage": "https://github.com/vimtor/use-line-clamp#readme",
"repository": {
"type": "git",
"url": "https://github.com/vimtor/use-line-clamp"
},
"bugs": {
"url": "https://github.com/vimtor/use-line-clamp/issues"
},
"keywords": [
"react",
"hook",
"line clamp",
"show more"
]
}