{"_id":"@life-palette/utils","_rev":"6-45ba532381faf16dd439ea9e0d3704ff","name":"@life-palette/utils","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.1":{"name":"@life-palette/utils","version":"0.0.1","license":"MIT","_id":"@life-palette/utils@0.0.1","maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"homepage":"https://github.com/IceyWu/life-palette-utils#readme","bugs":{"url":"https://github.com/IceyWu/life-palette-utils/issues"},"dist":{"shasum":"e809d58aefc65a60d9319cc24a195a449cf9948e","tarball":"https://registry.npmjs.org/@life-palette/utils/-/utils-0.0.1.tgz","fileCount":7,"integrity":"sha512-LIpoFx48Bte2qF4lGxkkk2G85Pi4T3rXfMVHhRXoQMCySMu2Z0kUDBiIuw+pN1p33oTXYDa1rnJrbi+0oz1Nvw==","signatures":[{"sig":"MEYCIQDPgy5mdklXsl/EbwZFY/ceu5zJRgTwFedaz7gozcNK7QIhAKsTUPJZqT/kYWAeY0F3Cw9u/ctBF7qrq7O5qTVqwx3j","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6379},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"3fadc599ae4125bf1413f8ef43c1c6b1170729a5","scripts":{"dev":"vitest dev","lint":"eslint . && prettier -c .","play":"jiti playground","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish --registry https://registry.npmjs.org && git push --follow-tags","lint:fix":"automd && eslint . --fix && prettier -w .","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"suqiqi","email":"suqiqiqwq@gmail.com"},"repository":{"url":"git+https://github.com/IceyWu/life-palette-utils.git","type":"git"},"_npmVersion":"10.2.0","description":"<!-- automd:badges color=yellow -->","directories":{},"sideEffects":false,"_nodeVersion":"21.1.0","dependencies":{"@iceywu/utils":"^0.0.48"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@9.7.0","devDependencies":{"jiti":"^2.0.0-beta.3","automd":"^0.3.8","eslint":"^9.8.0","vitest":"^2.0.5","unbuild":"^3.0.0-rc.7","prettier":"^3.3.3","typescript":"^5.5.4","@types/node":"^22.1.0","changelogen":"^0.5.5","eslint-config-unjs":"^0.3.2","@vitest/coverage-v8":"^2.0.5"},"_npmOperationalInternal":{"tmp":"tmp/utils_0.0.1_1731210358922_0.7773365629587836","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@life-palette/utils","version":"0.0.2","license":"MIT","_id":"@life-palette/utils@0.0.2","maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"homepage":"https://github.com/IceyWu/life-palette-utils#readme","bugs":{"url":"https://github.com/IceyWu/life-palette-utils/issues"},"dist":{"shasum":"f5269c5cf33df505c02df51e93fc89e9eec54140","tarball":"https://registry.npmjs.org/@life-palette/utils/-/utils-0.0.2.tgz","fileCount":7,"integrity":"sha512-K05zZ21MwiKxx8Kk/duQQjbIA8K3b+16MQxRXN8zok4G7sjzp0xl3gs+MqipeCv2ww5qrs50/Rj0mNjvyfsMGw==","signatures":[{"sig":"MEUCIQCdBTD6+o277nbgRWnmjzjfG5q7BGwSUWzQ+xb56VPmngIgftJbzsHldE+YfVi0mtwvsTuXvNNWI7EHff5CtZ3Ix3A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8736},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"59782ef78936f8f75ae64984937bd47d91750cb8","scripts":{"dev":"vitest dev","lint":"eslint . && prettier -c .","play":"jiti playground","test":"pnpm lint && pnpm test:types && vitest run --coverage","build":"unbuild","prepack":"pnpm build","release":"pnpm test && changelogen --release && npm publish --registry https://registry.npmjs.org && git push --follow-tags","lint:fix":"automd && eslint . --fix && prettier -w .","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"suqiqi","email":"suqiqiqwq@gmail.com"},"repository":{"url":"git+https://github.com/IceyWu/life-palette-utils.git","type":"git"},"_npmVersion":"10.9.0","description":"<!-- automd:badges color=yellow -->","directories":{},"sideEffects":false,"_nodeVersion":"22.11.0","dependencies":{"@iceywu/utils":"^0.0.49"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.0","devDependencies":{"jiti":"^2.4.2","automd":"^0.3.12","eslint":"^9.20.1","vitest":"^3.0.5","unbuild":"^3.3.1","prettier":"^3.5.1","typescript":"^5.7.3","@types/node":"^22.13.4","changelogen":"^0.5.7","eslint-config-unjs":"^0.4.2","@vitest/coverage-v8":"^3.0.5"},"_npmOperationalInternal":{"tmp":"tmp/utils_0.0.2_1739513498154_0.06114556985316755","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@life-palette/utils","version":"0.0.3","license":"MIT","_id":"@life-palette/utils@0.0.3","maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"homepage":"https://github.com/IceyWu/life-palette-utils#readme","bugs":{"url":"https://github.com/IceyWu/life-palette-utils/issues"},"dist":{"shasum":"ee8a897772712ea10e48b68c28f22b14fce1aedf","tarball":"https://registry.npmjs.org/@life-palette/utils/-/utils-0.0.3.tgz","fileCount":7,"integrity":"sha512-pX8qnNO9qWWf+KKN+f2tsSa3T34ZlXigVyOAp9CrE0rt+ozk7oLGSr2UjCwL22pZHoq0VXEle4TIHEN+omFI6A==","signatures":[{"sig":"MEQCIHGoD9G6Q25xaz5v6HmMcl0LwKNLVf5vCmpgOwXrVScgAiBeqbjLM7Sd6SG7cSlsqUA7r9WWH7aDjnQDLNAndghX+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8604},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"c59468e821a5fe0c4810f30533817a28b2827526","scripts":{"dev":"vitest dev","lint":"eslint . && prettier -c .","play":"jiti playground","test":"pnpm lint && pnpm test:types","build":"unbuild","prepack":"pnpm build","release":"changelogen --release && npm publish --registry https://registry.npmjs.org && git push --follow-tags","lint:fix":"automd && eslint . --fix && prettier -w .","test:types":"tsc --noEmit --skipLibCheck"},"_npmUser":{"name":"suqiqi","email":"suqiqiqwq@gmail.com"},"repository":{"url":"git+https://github.com/IceyWu/life-palette-utils.git","type":"git"},"_npmVersion":"10.9.0","description":"[![npm version](https://img.shields.io/npm/v/@life-palette/utils?color=yellow)](https://npmjs.com/package/@life-palette/utils) [![npm downloads](https://img.shields.io/npm/dm/@life-palette/utils?color=yellow)](https://npm.chart.dev/@life-palette/utils)","directories":{},"sideEffects":false,"_nodeVersion":"22.11.0","dependencies":{"@iceywu/utils":"^0.0.49"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.4.1","devDependencies":{"jiti":"^2.4.2","automd":"^0.3.12","eslint":"^9.21.0","vitest":"^3.0.6","unbuild":"^3.3.1","prettier":"^3.5.2","typescript":"^5.7.3","@types/node":"^22.13.5","changelogen":"^0.5.7","eslint-config-unjs":"^0.4.2","@vitest/coverage-v8":"^3.0.6"},"_npmOperationalInternal":{"tmp":"tmp/utils_0.0.3_1740302187386_0.10322161869953494","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@life-palette/utils","version":"0.0.4","license":"MIT","_id":"@life-palette/utils@0.0.4","maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"homepage":"https://github.com/IceyWu/life-palette-utils#readme","bugs":{"url":"https://github.com/IceyWu/life-palette-utils/issues"},"dist":{"shasum":"e44bf2603c8f07e49bf5ab213da599b75df9be59","tarball":"https://registry.npmjs.org/@life-palette/utils/-/utils-0.0.4.tgz","fileCount":6,"integrity":"sha512-AHDaQiaV06L4am2hTzTDtxs6Ttnk1DhCasQlevpPWavUj/esWkSGuyBHWP/DZkEx8QUhCNDANwctxuNGdBMCZA==","signatures":[{"sig":"MEYCIQDv1qwkkZHxeQDSrEVdyIsVOQSQqzgH5HC373YGsPvZRAIhAMxZVihpFEtNFMff/1DOqH0h/YhEAJ6CoL5ch+2l2r3D","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15756},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"8012c4e3256370885e27cd65a5f40d04f95cb125","scripts":{"dev":"vitest dev","test":"vitest run","build":"unbuild","release":"changelogen --release --push && npm publish"},"_npmUser":{"name":"suqiqi","email":"suqiqiqwq@gmail.com"},"repository":{"url":"git+https://github.com/IceyWu/life-palette-utils.git","type":"git"},"_npmVersion":"10.9.3","description":"一个实用的工具库，提供文件处理、文件选择等常用功能","directories":{},"sideEffects":false,"_nodeVersion":"22.19.0","dependencies":{"@iceywu/utils":"^0.0.49"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","unbuild":"^3.6.1","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/utils_0.0.4_1761016848522_0.11424115646069288","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@life-palette/utils","version":"0.1.0","license":"MIT","_id":"@life-palette/utils@0.1.0","maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"homepage":"https://github.com/Life-Palette/packages/tree/main/packages/utils#readme","bugs":"https://github.com/Life-Palette/packages/issues","dist":{"shasum":"56f7495efd84cd198f907a2411966858ad52ea16","tarball":"https://registry.npmjs.org/@life-palette/utils/-/utils-0.1.0.tgz","fileCount":7,"integrity":"sha512-EHwKgZxgE4Ik/Vfr6bxEPVRf5JTZTR1y4ae4hyJ3aGYRqbP4p8XyVNrV8nJ9G2H/4gWmnDsZeJkECeJjuFUJEw==","signatures":[{"sig":"MEUCIAFxV51JRPqbO/OMAgvP8YDhQGLXgI6QhMkE/C/Kf1P2AiEA2NbITBchtNFTDl657H5jQOSTi976iZuiYNIsRQOlCnw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":79576},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"vitest dev","test":"vitest run","build":"unbuild"},"_npmUser":{"name":"suqiqi","email":"suqiqiqwq@gmail.com"},"repository":{"url":"https://github.com/Life-Palette/packages","type":"git","directory":"packages/utils"},"description":"Life Palette 公共工具库：OSS 上传、媒体处理、日期格式化、MD5、Cookie、分页等","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.6","unbuild":"^3.6.1","@vitest/coverage-v8":"^4.1.6","baseline-browser-mapping":"^2.10.29"},"_npmOperationalInternal":{"tmp":"tmp/utils_0.1.0_1778744718255_0.7643983191900761","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"_id":"@life-palette/utils@0.2.0","bugs":"https://github.com/Life-Palette/packages/issues","dist":{"shasum":"f6d3f74743f41f238f32052107b0087b0167d5a5","tarball":"https://registry.npmjs.org/@life-palette/utils/-/utils-0.2.0.tgz","fileCount":6,"integrity":"sha512-umTKjWT3kKYcHKHScVYWrKw5s7PFXVX0EcpA7nCNjZQDkFi3an05yHq9o6T3lD0Kc+Q4HNNTbMGLZrzJstOYfQ==","signatures":[{"sig":"MEUCIChksh+SOvV2znVySAhXMOB4nm7qbJj0FcwTPKwotvLaAiEA7vmI/GvXGHbnd0Pp3OUimWBmRVRraFMNmCttJgMUr34=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGtqb0RH3p8rk8FRlAj/+C/fVmv5qf5XL2orQyzOwv+qAiEAw7c8+JlpY2/eUODW5CWaXGvvmQVlFbhzXIgQ6yOxTQo="}],"unpackedSize":27563},"main":"./dist/index.cjs","name":"@life-palette/utils","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"license":"MIT","scripts":{"dev":"vitest dev","test":"vitest run","build":"tsdown","test:browser":"vitest run --browser.headless"},"version":"0.2.0","_npmUser":{"name":"suqiqi","email":"suqiqiqwq@gmail.com"},"homepage":"https://github.com/Life-Palette/packages/tree/main/packages/utils#readme","repository":{"url":"https://github.com/Life-Palette/packages","type":"git","directory":"packages/utils"},"description":"Pure-function toolkit: async helpers, date format, url parse, pagination, markdown strip, browser helpers. Zero dependencies.","directories":{},"maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"sideEffects":false,"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"attw":"^1.0.0","tsdown":"^0.23.0","vitest":"^5.0.0","publint":"^0.3.24","@vitest/browser":"^5.0.0","@vitest/coverage-v8":"^5.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_0.2.0_1789288420137_0.9419872107708882"}}},"time":{"created":"2024-11-10T03:45:58.814Z","modified":"2026-09-13T08:33:40.453Z","0.0.1":"2024-11-10T03:45:59.107Z","0.0.2":"2025-02-14T06:11:38.321Z","0.0.3":"2025-02-23T09:16:27.556Z","0.0.4":"2025-10-21T03:20:48.715Z","0.1.0":"2026-05-14T07:45:18.417Z","0.2.0":"2026-09-13T08:33:40.236Z"},"bugs":"https://github.com/Life-Palette/packages/issues","license":"MIT","homepage":"https://github.com/Life-Palette/packages/tree/main/packages/utils#readme","repository":{"url":"https://github.com/Life-Palette/packages","type":"git","directory":"packages/utils"},"description":"Pure-function toolkit: async helpers, date format, url parse, pagination, markdown strip, browser helpers. Zero dependencies.","maintainers":[{"name":"suqiqi","email":"suqiqiqwq@gmail.com"}],"readme":"# @life-palette/utils\n\nPure-function toolkit used across the Life Palette packages. Zero runtime dependencies — drop-in for any framework or runtime.\n\n## Modules\n\n- `async` — `sleep`, `debounce`, `throttle`\n- `date` — `formatRelativeTime`, `formatDistanceToNow`\n- `url` — `parseUrl`, `restoreUrl`, `isFastClick`\n- `pagination` — `getPageNumbers`\n- `markdown` — `stripMarkdown`\n- `browser` — `selectFile`, `readFile`, `preloadImage`, `preloadImages`, `isSlowNetwork`, `getDeviceType`, `supportsWebP`\n\n## Install\n\n```bash\npnpm add @life-palette/utils\n```\n\n## License\n\nMIT\n","readmeFilename":""}