UNPKG

react-use-locale-number-input

Version:

A React hook for formatting number inputs based on the user's locale.

65 lines (64 loc) 1.94 kB
{ "name": "react-use-locale-number-input", "version": "1.0.0", "description": "A React hook for formatting number inputs based on the user's locale.", "keywords": [ "react", "react-hook", "react-component", "react-number-input", "react-number-input-component", "react-number-input-hook", "react-number" ], "license": "GPL-3.0", "scripts": { "dev": "npm run build:esm:watch", "build": "npm run build:esm && npm run build:cjs", "build:esm": "tsc", "build:cjs": "tsc --module commonjs --outDir dist/cjs", "build:esm:watch": "tsc --watch", "build:cjs:watch": "tsc --module commonjs --outDir dist/cjs --watch", "build:watch": "npm run build:esm:watch && npm run build:cjs:watch", "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"", "prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"", "test": "jest --config jestconfig.json", "prepare": "npm run build", "prepublishOnly": "npm test && npm run prettier" }, "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "files": [ "dist", "LICENSE", "README.md" ], "dependencies": { "react": "^18", "react-dom": "^18.2.0" }, "devDependencies": { "@testing-library/jest-dom": "^5.16.5", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3", "@types/jest": "^29.5.1", "@types/node": "^18.15.11", "@types/react": "^18.0.35", "@types/react-dom": "^18.0.11", "eslint": "^8.38.0", "eslint-config-next": "^13.3.0", "eslint-plugin-prettier": "^4.2.1", "jest": "^29.5.0", "jest-canvas-mock": "^2.5.0", "jest-css-modules-transform": "^4.4.2", "jest-environment-jsdom": "^29.5.0", "prettier": "^2.8.7", "ts-jest": "^29.1.0", "ts-node": "^10.9.1", "typescript": "^5.0.4" }, "peerDependencies": { "react": "^18" } }