UNPKG

opendb-store

Version:

A lightweight utility to manage browser storage (localStorage, sessionStorage, and cookies) with advanced features. Easily configure namespaces, key trimming, and data expiry.

122 lines (121 loc) 3.82 kB
{ "name": "opendb-store", "version": "1.2.0", "description": "A lightweight utility to manage browser storage (localStorage, sessionStorage, and cookies) with advanced features. Easily configure namespaces, key trimming, and data expiry.", "main": "./dist/opendb-umd.js", "module": "./dist/opendb-esm.js", "exports": { "import": "./dist/opendb-esm.js", "require": "./dist/opendb-umd.js" }, "type": "module", "publishConfig": { "access": "public" }, "files": [ "src", "dist/opendb-esm.js", "dist/opendb-esm.min.js", "dist/opendb-umd.js", "dist/opendb-umd.min.js", "README.md" ], "scripts": { "prepare": "husky", "lint": "eslint src/**/*.js tests/*.js", "format": "prettier --write .", "bundle": "npm run module-package-json && rollup -c && eslint dist/opendb-esm.js && eslint dist/opendb-umd.js", "module-package-json": "echo \"export const version = '${npm_package_version}';\" > src/config/version.js", "prepare-tests": "npm run bundle", "test-node": "jest", "test": "npm run lint && npm run prepare-tests && npm run test-node", "clean": "rm -rf dist", "lint:fix": "eslint \"src/**/*.js\" \"tests/*.js\" \"public/*.js\" --fix", "minify-umd": "npx terser dist/opendb-umd.js -o dist/opendb-umd.min.js --compress --mangle", "minify-esm": "npx terser dist/opendb-esm.js -o dist/opendb-esm.min.js --compress --mangle", "build-umd": "npm run minify-umd", "build-esm": "npm run minify-esm", "build:types": "npm run module-package-json && tsc", "build": "npm run bundle && npm run build-esm && npm run build-umd", "semantic-release": "semantic-release", "prepublishOnly": "npm run build" }, "repository": { "type": "git", "url": "git+https://github.com/pankajbisht/opendb-store.git" }, "keywords": [ "opendb-store", "opendb", "store", "localStorage", "sessionStorage", "state-management", "data-storage", "browser-storage", "key-value-store", "lightweight-storage", "js-storage", "persistent-storage", "storage-utility", "web-storage", "cache", "frontend-storage", "react-storage", "vanilla-js-storage", "typescript-storage", "localstore", "sessionstore" ], "author": "Pankaj Bisht", "license": "ISC", "bugs": { "url": "https://github.com/pankajbisht/opendb-store/issues" }, "homepage": "https://github.com/pankajbisht/opendb-store#readme", "devDependencies": { "@babel/parser": "^7.26.9", "@babel/plugin-transform-runtime": "^7.25.9", "@babel/preset-env": "^7.26.7", "@babel/runtime": "^7.26.7", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-node-resolve": "^16.0.0", "@semantic-release/changelog": "^6.0.3", "@semantic-release/commit-analyzer": "^13.0.1", "@semantic-release/git": "^10.0.1", "@semantic-release/github": "^11.0.1", "@semantic-release/release-notes-generator": "^14.0.3", "babel-jest": "^29.7.0", "babel-loader": "^9.2.1", "eslint": "^9.19.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-prettier": "^5.2.3", "husky": "^9.1.7", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "jest-html-reporter": "^3.10.2", "lint-staged": "^15.4.3", "prettier": "^3.4.2", "rollup": "^4.34.0", "semantic-release": "^24.2.1", "terser": "^5.37.0", "terser-webpack-plugin": "^5.3.11", "typescript": "^5.7.3", "webpack": "^5.97.1", "webpack-cli": "^6.0.1", "webpack-merge": "^6.0.1" }, "lint-staged": { "src/**/*.js": [ "eslint --fix", "prettier --write", "git add" ], "tests/**/*.js": [ "eslint --fix", "prettier --write", "git add" ] } }