{"_id":"4dspacebag","_rev":"2-53b800e52d392972986261467557e9f4","name":"4dspacebag","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"4dspacebag","version":"1.0.0","keywords":["Unit","mock"],"author":{"name":"xinga","email":"xinga1016@163.com"},"license":"ISC","_id":"4dspacebag@1.0.0","maintainers":[{"name":"xinga","email":"xinga1016@163.com"}],"dist":{"shasum":"933ef13ba4a2e1399fb147ff278b658f2db55cb3","tarball":"https://registry.npmjs.org/4dspacebag/-/4dspacebag-1.0.0.tgz","fileCount":5,"integrity":"sha512-V5s/pqBNleNpoUCWkEXyqjtCXBuZuDYPpwoRwCkihqePqm3z/4zmNmbN3fhP7qDa2Llie2Fc+NzLsz2EmeEthQ==","signatures":[{"sig":"MEYCIQCBth6JBkcCiEs2hMUb/Gkyqh79VocXLj9Ev4t1B26yHgIhAL+tlCM6SmpLTtsSD8sjabLyqf5xzoRH6NF3TxFcELGq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6964},"main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"xinga","email":"xinga1016@163.com"},"_npmVersion":"6.14.14","description":"四次元空间袋，前端工具集成包","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/4dspacebag_1.0.0_1727074067989_0.5090869542537304","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"4dspacebag","version":"1.0.1","keywords":["Unit","mock"],"author":{"name":"xinga","email":"xinga1016@163.com"},"license":"ISC","_id":"4dspacebag@1.0.1","maintainers":[{"name":"xinga","email":"xinga1016@163.com"}],"dist":{"shasum":"2d6db65be264c2e389c5683356001589590fb618","tarball":"https://registry.npmjs.org/4dspacebag/-/4dspacebag-1.0.1.tgz","fileCount":5,"integrity":"sha512-CK0170yZJ7j4Kyvl8b2m6lIN8Zfy5X11JKqWmItQM0slTnETE/3Joc9gFyJWI036adYT2cldLOJ2WBfak8Cl4g==","signatures":[{"sig":"MEQCIHFmPdIUQ+/RAo2EoynH7uaDBpfTKPVxi0k1US42WBTeAiA7ZcN8SdmjXpy2nIG9+sm2h1DPcr51Al2vRIbcfNKtSw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6965},"main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"xinga","email":"xinga1016@163.com"},"_npmVersion":"6.14.14","description":"四次元空间袋，前端工具集成包","directories":{},"_nodeVersion":"14.17.5","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/4dspacebag_1.0.1_1727074446411_0.7233374180341037","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"4dspacebag","version":"1.1.0","description":"四次元空间袋，前端工具集成包","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["Unit","mock"],"author":{"name":"xinga","email":"xinga1016@163.com"},"license":"ISC","_id":"4dspacebag@1.1.0","_nodeVersion":"18.20.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-oNy7YW0+ZozXlkB5YoLs1Eog8xCEgr6oL2rARK192H1PuQb9dtid1V+/V7f8MsijizS3TqMr51ki0xHBiLRMUw==","shasum":"cbc8893cad0c0cd5bb9c0f896a2cec4cb2b394ca","tarball":"https://registry.npmjs.org/4dspacebag/-/4dspacebag-1.1.0.tgz","fileCount":6,"unpackedSize":11104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxnePI9gczDvvlxFzAHF9cOufgkc/6zJ0c4xTmIkpqGAiAh+9KGHDBHngaUHnGOGPycwvLnFxCM3/5ub0zCN2zdcA=="}]},"_npmUser":{"name":"xinga","email":"xinga1016@163.com"},"directories":{},"maintainers":[{"name":"xinga","email":"xinga1016@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4dspacebag_1.1.0_1728617583006_0.5462904818483223"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-23T06:47:47.988Z","modified":"2024-10-11T03:33:03.395Z","1.0.0":"2024-09-23T06:47:48.144Z","1.0.1":"2024-09-23T06:54:06.608Z","1.1.0":"2024-10-11T03:33:03.201Z"},"author":{"name":"xinga","email":"xinga1016@163.com"},"license":"ISC","keywords":["Unit","mock"],"description":"四次元空间袋，前端工具集成包","maintainers":[{"name":"xinga","email":"xinga1016@163.com"}],"readme":"# 哆啦A梦-4次元空间袋\r\n\r\n## mockjs\r\n异步请求mock数据，集成多种数据类型\r\n示例：\r\n```js\r\nconst {mockjs} = require('@/4dspacebag')\r\n\r\nmockjs({name:'name'}, 1000).then((res) => {\r\n  console.log(res)\r\n})\r\n```\r\n\r\n## docCookies\r\ndocument.cookie 操作封装\r\n示例：\r\n```js\r\nconst {docCookies} = require('@/4dspacebag')\r\n\r\ndocCookies.setItem(\"test0\", \"Hello world!\");\r\ndocCookies.setItem(\r\n  \"test1\",\r\n  \"Unicode test: \\u00E0\\u00E8\\u00EC\\u00F2\\u00F9\",\r\n  Infinity,\r\n);\r\ndocCookies.setItem(\"test2\", \"Hello world!\", new Date(2020, 5, 12));\r\ndocCookies.setItem(\"test3\", \"Hello world!\", new Date(2027, 2, 3), \"/blog\");\r\ndocCookies.setItem(\"test4\", \"Hello world!\", \"Sun, 06 Nov 2022 21:43:15 GMT\");\r\ndocCookies.setItem(\r\n  \"test5\",\r\n  \"Hello world!\",\r\n  \"Tue, 06 Dec 2022 13:11:07 GMT\",\r\n  \"/home\",\r\n);\r\ndocCookies.setItem(\"test6\", \"Hello world!\", 150);\r\ndocCookies.setItem(\"test7\", \"Hello world!\", 245, \"/content\");\r\ndocCookies.setItem(\"test8\", \"Hello world!\", null, null, \"example.com\");\r\ndocCookies.setItem(\"test9\", \"Hello world!\", null, null, null, true);\r\ndocCookies.setItem(\"test1;=\", \"Safe character test;=\", Infinity);\r\n\r\nalert(docCookies.keys().join(\"\\n\"));\r\nalert(docCookies.getItem(\"test1\"));\r\nalert(docCookies.getItem(\"test5\"));\r\ndocCookies.removeItem(\"test1\");\r\ndocCookies.removeItem(\"test5\", \"/home\");\r\nalert(docCookies.getItem(\"test1\"));\r\nalert(docCookies.getItem(\"test5\"));\r\nalert(docCookies.getItem(\"unexistingCookie\"));\r\nalert(docCookies.getItem());\r\nalert(docCookies.getItem(\"test1;=\"));\r\n\r\n```","readmeFilename":"README.md"}