@rtbjs/use-state
Version:
`@rtbjs/use-state` is a state management tool that can act as a local state and be easily turned into a global redux state. It is an innovative approach to state management that combines the advantages of both React's useState and Redux's state management
93 lines (92 loc) • 2.35 kB
JSON
{
"name": "@rtbjs/use-state",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"bugs": {
"url": "https://github.com/toolbox-js/issues/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/toolbox-js/issues.git"
},
"scripts": {
"build": "yarn build:esm && yarn build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
"lint:fix": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\" --fix",
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
"test": "jest --config jestconfig.json",
"prepare": "npm run build",
"prepublishOnly": "npm run lint",
"minify": "uglifyjs --compress --mangle --output name.min.js -- name.js"
},
"peerDependencies": {
"react": ">=16",
"react-redux": ">=8.0.5"
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"keywords": [
"react",
"devtools",
"redux",
"save redux state",
"redux-persist",
"redux save",
"redux",
"react",
"redux devtools",
"useState",
"useReducer",
"useContext",
"useSelector",
"useDispatch",
"useStore",
"useActions",
"useRedux"
],
"author": "AndriiPopov",
"version": "1.0.7",
"dependencies": {
"uuid": "9.0.1"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"@types/jest": "^29.4.0",
"@types/node": "^18.11.18",
"@types/react": "^18.0.27",
"@types/react-dom": "^18.0.10",
"@types/react-redux": "7.1.28",
"@types/uuid": "9.0.6",
"@typescript-eslint/eslint-plugin": "6.7.0",
"@typescript-eslint/parser": "6.7.0",
"eslint": "8.49.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"prettier": "3.0.3",
"ts-jest": "29.1.1",
"typescript": "^4.9.4",
"uglify-js": "3.17.4"
}
}