{"_id":"@belloai/ls","_rev":"5-8cb57a61e5c4b2d6b5c2a501b7d2c2b3","name":"@belloai/ls","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@belloai/ls","version":"0.0.1","description":"base64 的Local Storage","keywords":["Local","Storage"],"author":{"name":"thomas-ballo","email":"liurongliang@balloai.com"},"homepage":"https://github.com/threfo/bello_frontend#readme","license":"ISC","publishConfig":{"access":"public"},"directories":{"lib":"lib","test":"__tests__"},"module":"lib/index.esm.js","types":"lib/index.d.ts","main":"lib/index.common.js","unpkg":"lib/index.js","jsdelivr":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git"},"scripts":{"build":"rimraf lib/* && rollup -c","watch":"rimraf lib/* && rollup -c -w","prepublishOnly":"yarn run build"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"dependencies":{"js-base64":"^3.7.2","store":"^2.0.12"},"gitHead":"1b562824607b789e1d212a988e324cb88c31eca6","_id":"@belloai/ls@0.0.1","_nodeVersion":"14.15.5","_npmVersion":"lerna/3.22.1/node@v14.15.5+x64 (darwin)","dist":{"integrity":"sha512-VqJBFhFiEmNLFCumzZvEpg1vbdeR300Cy35jvHPLwSCmsGXcbNemfmLfNRTfn6IGanU9n1wAjqEJqAnJ7TwC0A==","shasum":"0159a3d943e4797ba0f92c1e2055ff90d0055964","tarball":"https://registry.npmjs.org/@belloai/ls/-/ls-0.0.1.tgz","fileCount":14,"unpackedSize":34782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhvZWRCRA9TVsSAnZWagAA3wcQAKKacwRss6jSIPJbrgks\nF+YaFBAwbnsREzoOpjTP1tUgNwwC+YVU4qJnOKmz+UcrNRMSdZYbx/I/SLKx\nQJ2+OnrZQx6t+aQXqT/8lik9HbWQV1MEprP99UgNh4Ry1rVjHBeFn6WQ0/ho\nZzpG01OqmF5bT1O+dm2y/y4fi0602cVnUQ/21r7asbhAfbsQTJzThyitfN6O\nq2xMjINFeQMJG6fm3HTp5+kYWIaM5JGbKMp0SEVyia9m0P9PKKb5VKNEKtvZ\n4EZ3tfSz4udRsoKHMCS9218aKp88Bucpw+V4F8JvKkM8A2RZzVM374CprJUR\nC5fQw16c5TjU3O7KtEQkh3/JZCHMR0T2GK6HVA+3nvuz65+y13Gu36bdHd9/\n+AZHIUM8uqoZMFJ9I2Ni5m92J3UxNZPRz31vUwi9P79VT29mdpXHH1ieB7G0\n70i/qYwKY8mjpuYgfzp0oigQGwqFOyTAJZH1FN7u3lKcrXsnRhKKvgHgUSlR\nAUk2GWrBSnbpOG9QYc3yADtb63yvPY/wVs4LZAUSOZlP5Xk4ZTIeO9vcy87/\nS6AbIohpqXQpyYExfEobbc2W1vD3WgohLPOXNEkYJtTbTNaceNLSKLekV80u\nTrTJc7mnCRiJQqceBSHJOmwxLGsFxCE+gNiZL1/DsbsTKZ0mvXJc+spfmnPa\npGq5\r\n=q4XT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHOgK1ui0ZVIB2yLhL3rtb2e0Ki0KzCG6Wl7NgSaCNdPAiEAods0uS59dzd7rVgrFgIxuAjSfdnfI119tvRRazuBwNY="}]},"_npmUser":{"name":"thomas-ballo","email":"liurongliang@belloai.com"},"maintainers":[{"name":"elysion72513","email":"liguangyuan@belloai.com"},{"name":"wanghuajin","email":"wanghuajin@belloai.com"},{"name":"thomas-ballo","email":"liurongliang@belloai.com"},{"name":"ouxiaohui","email":"627424435@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ls_0.0.1_1639814544846_0.5032174404860397"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-18T08:02:24.796Z","0.0.1":"2021-12-18T08:02:25.020Z","modified":"2024-04-03T09:35:11.632Z"},"maintainers":[{"email":"powan.li@foxmail.com","name":"powan"},{"email":"elysion72513@gmail.com","name":"elysion72513"},{"email":"liurongliang@belloai.com","name":"thomas-ballo"},{"email":"627424435@qq.com","name":"ouxiaohui"}],"description":"base64 的Local Storage","homepage":"https://github.com/threfo/bello_frontend#readme","keywords":["Local","Storage"],"repository":{"type":"git","url":"git+https://github.com/threfo/bello_frontend.git"},"author":{"name":"thomas-ballo","email":"liurongliang@balloai.com"},"bugs":{"url":"https://github.com/threfo/bello_frontend/issues"},"license":"ISC","readme":"# `ls`\n\n> 带有 `Base64` 加密能力的 `LocalStorage`\n\n## Usage\n\n```js\nconst Ls = require('@belloai/ls')\n\nconst ls = new Ls({\n  notClearKeys: ['a'],\n  passLocalStorageB64Key: 'b'\n})\n\nls.set('a', 'aaaa')\nls.get('a') // 'aaaa'\n\nls.set('c', 'cccc')\nls.get('c') // 'cccc'\n\nls.getKeys() // ['a','c']\n\nls.clearAllExcept()\n\nls.getKeys() // ['a']\nls.get('a') // 'aaaa'\nls.get('c') // ''\n\nls.clear()\n\nls.getKeys() // []\n\nls.set('d', 'dddd')\nls.get('d') // 'dddd'\nls.remove('d')\nls.get('d') // ''\n```\n","readmeFilename":"README.md"}