UNPKG

@tag0/use-text-width

Version:
78 lines (77 loc) 2.32 kB
{ "name": "@tag0/use-text-width", "version": "1.2.0", "description": "React hook to measure text width", "repository": { "type": "git", "url": "git+https://github.com/TagZero/use-text-width.git" }, "keywords": [ "react", "hook", "canvas", "text-width" ], "types": "dist/index.d.ts", "main": "dist/cjs/index.js", "module": "dist/es/index.js", "browser": "dist/umd/index.js", "license": "MIT", "files": [ "dist", "package.json", "LICENSE.md", "README.md" ], "scripts": { "clean": "rimraf dist", "lint": "eslint \"src/**/*.{js,ts,tsx}\"", "test": "jest --config=jest.config.js", "build": "yarn clean && NODE_ENV=development rollup -c rollup.config.js", "build:prod": "yarn clean && NODE_ENV=production rollup -c rollup.config.js", "build:example": "yarn clean && rollup -c rollup.examples.config.js", "start": "yarn build:example && serve dist", "prepublishOnly": "yarn build" }, "devDependencies": { "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-html": "^0.2.3", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-replace": "^3.0.0", "@testing-library/jest-dom": "^5.14.1", "@testing-library/react-hooks": "^7.0.1", "@types/jest": "^27.0.1", "@types/react": "^17.0.19", "@types/react-dom": "^17.0.9", "@typescript-eslint/eslint-plugin": "^4.29.2", "@typescript-eslint/parser": "^4.29.2", "@wessberg/rollup-plugin-ts": "^1.3.8", "babel-eslint": "^10.1.0", "canvas": "^2.8.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-jest": "^24.4.0", "eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-prettier": "^3.4.1", "eslint-plugin-react": "^7.24.0", "eslint-plugin-react-hooks": "^4.2.0", "jest": "^27.0.6", "prettier": "^2.3.2", "react": "^17.0.2", "react-dom": "^17.0.2", "react-test-renderer": "^17.0.2", "rollup": "^2.56.3", "rollup-plugin-filesize": "^9.1.1", "rollup-plugin-postcss": "^3.1.8", "rollup-plugin-terser": "^7.0.2", "serve": "^12.0.0", "ts-jest": "^27.0.5", "tslib": "^2.3.1", "typescript": "^4.3.5" }, "peerDependencies": { "react": ">=16.x || >=17.x", "react-dom": ">=16.x || >=17.x" }, "dependencies": {} }