{"_id":"unicorn-magic","_rev":"1565642","name":"unicorn-magic","description":"Some useful utilities I often need","dist-tags":{"latest":"0.4.1"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2026-10-15T19:59:08.000Z","created":"2023-11-09T15:54:05.533Z","0.4.1":"2026-09-24T02:56:19.689Z","0.4.0":"2025-11-15T10:26:17.659Z","0.3.0":"2024-07-25T16:24:34.405Z","0.2.0":"2024-05-11T09:16:33.504Z","0.1.0":"2023-11-09T15:54:05.533Z"},"users":{},"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/unicorn-magic.git","type":"git"},"versions":{"0.4.1":{"_id":"unicorn-magic@0.4.1","bugs":{"url":"https://github.com/sindresorhus/unicorn-magic/issues"},"dist":{"shasum":"b7a367e6e10c96da7e6b9b007d69c11c7d558dee","tarball":"http://registry-npm.ywwl.com/unicorn-magic/download/unicorn-magic-0.4.1.tgz","fileCount":7,"integrity":"sha512-lzlXPoVB0Uy/FvTaUgX39RbixYiSKoc3JSoSf01+0c2B6FR3qdYIPN7Qjo/AV7n6sqLCk0509cT3LRj1oSZ1+A==","signatures":[{"sig":"MEQCIEViBJuwskWcg/w6ewmu7sK+BPrVnMF/RnAuzFE8XqcuAiAEXc7OmzaZWrwtd089JrNrtV7CAWmBv1bzlC+56DX/PA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDNaLcnwGVVSk49BvS05Q+PS2VfDtUU7SXuJIPevGofiQIgJpM5tv1SUBFNn+cfKcJ+vwvo8cki8goRnNzrMwGZigo="}],"unpackedSize":7531,"size":3205,"noattachment":false,"key":"/unicorn-magic/-/unicorn-magic-0.4.1.tgz"},"name":"unicorn-magic","type":"module","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"engines":{"node":">=20"},"exports":{".":{"node":{"types":"./node.d.ts","default":"./node.js"},"default":{"types":"./default.d.ts","default":"./default.js"}},"./node":{"types":"./node.d.ts","default":"./node.js"}},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"c81748a4cd8d8805786b99eefc10aec29759cefa","license":"MIT","scripts":{"test":"xo && ava && tsc node.d.ts"},"version":"0.4.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"homepage":"https://github.com/sindresorhus/unicorn-magic#readme","keywords":["utilities","util","extras","url","path","delay","wait","settimeout","sleep","child_process","child","process","subprocess","exec","execfile","execfilesync"],"repository":{"url":"git+https://github.com/sindresorhus/unicorn-magic.git","type":"git"},"_npmVersion":"12.0.1","description":"Some useful utilities I often need","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.9.0","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.59.2","ava":"^6.4.1","in-range":"^3.0.0","time-span":"^5.1.0","typescript":"^5.9.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unicorn-magic_0.4.1_1790218579603_0.1837112574949058"},"publish_time":1790218579689,"_cnpm_publish_time":1790218579689},"0.4.0":{"name":"unicorn-magic","version":"0.4.0","description":"Some useful utilities I often need","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/unicorn-magic.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{".":{"node":{"types":"./node.d.ts","import":"./node.js"},"default":{"types":"./default.d.ts","import":"./default.js"}},"./node":{"types":"./node.d.ts","import":"./node.js"}},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsc node.d.ts"},"keywords":["utilities","util","extras","url","path","delay","wait","settimeout","sleep","child_process","child","process","subprocess","exec","execfile","execfilesync"],"devDependencies":{"ava":"^6.4.1","in-range":"^3.0.0","time-span":"^5.1.0","typescript":"^5.9.3","xo":"^0.59.2"},"gitHead":"0829b385e1eca17ecfee99e23a61f640ccb55351","_id":"unicorn-magic@0.4.0","bugs":{"url":"https://github.com/sindresorhus/unicorn-magic/issues"},"homepage":"https://github.com/sindresorhus/unicorn-magic#readme","_nodeVersion":"20.19.5","_npmVersion":"11.6.1","dist":{"integrity":"sha512-wH590V9VNgYH9g3lH9wWjTrUoKsjLF6sGLjhR4sH1LWpLmCOH0Zf7PukhDA8BiS7KHe4oPNkcTHqYkj7SOGUOw==","shasum":"78c6a090fd6d07abd2468b83b385603e00dfdb24","tarball":"http://registry-npm.ywwl.com/unicorn-magic/download/unicorn-magic-0.4.0.tgz","fileCount":7,"unpackedSize":7528,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDuFtBakrjSedBSSEkjWH9BTOqO888DTWrVIXiR6p776gIhAP5EH1HWOuLEeFUo5QoT4kje6F0aFJavcFoRuy0bEDpa"}],"size":3209,"noattachment":false,"key":"/unicorn-magic/-/unicorn-magic-0.4.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unicorn-magic_0.4.0_1763202377446_0.6722415265344104"},"_hasShrinkwrap":false,"publish_time":1763202377659,"_cnpm_publish_time":1763202377659},"0.3.0":{"name":"unicorn-magic","version":"0.3.0","description":"Some useful utilities I often need","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/unicorn-magic.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"node":{"types":"./node.d.ts","import":"./node.js"},"default":{"types":"./default.d.ts","import":"./default.js"}},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsc node.d.ts"},"keywords":["utilities","util","extras","url","path","delay","wait","settimeout","sleep","child_process","child","process","subprocess","exec","execfile","execfilesync"],"devDependencies":{"ava":"^6.1.3","in-range":"^3.0.0","time-span":"^5.1.0","typescript":"^5.5.4","xo":"^0.59.2"},"_id":"unicorn-magic@0.3.0","gitHead":"bf9700bc394d39cc6aba83285f3bd040180eaa2b","bugs":{"url":"https://github.com/sindresorhus/unicorn-magic/issues"},"homepage":"https://github.com/sindresorhus/unicorn-magic#readme","_nodeVersion":"22.3.0","_npmVersion":"10.6.0","dist":{"integrity":"sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==","shasum":"4efd45c85a69e0dd576d25532fbfa22aa5c8a104","tarball":"http://registry-npm.ywwl.com/unicorn-magic/download/unicorn-magic-0.3.0.tgz","fileCount":7,"unpackedSize":7207,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCIkOcZcct1rG/yaRuotIBjoATyVEzox9ggZ5lpijDSwIgEBEGOaeg3QnxPBjXbkviG5Zpx2/AyNrwsPZoGdZCsRk="}],"size":3098,"noattachment":false,"key":"/unicorn-magic/-/unicorn-magic-0.3.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicorn-magic_0.3.0_1721924674158_0.029768154282744375"},"_hasShrinkwrap":false,"publish_time":1721924674405,"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_cnpm_publish_time":1721924674405},"0.2.0":{"name":"unicorn-magic","version":"0.2.0","description":"Some useful utilities I often need","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/unicorn-magic.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","node":"./node.js","default":"./default.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsc index.d.ts"},"keywords":["utilities","util","extras","url","path","delay","wait","settimeout","sleep"],"devDependencies":{"ava":"^5.3.1","in-range":"^3.0.0","time-span":"^5.1.0","typescript":"^5.2.2","xo":"^0.56.0"},"_id":"unicorn-magic@0.2.0","gitHead":"db98d334a453e55670f8b9a43902956283fb82e2","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/unicorn-magic/issues"},"homepage":"https://github.com/sindresorhus/unicorn-magic#readme","_nodeVersion":"20.12.2","_npmVersion":"10.6.0","dist":{"integrity":"sha512-q83y+/QtXrbKX1jYY+bdQROAbZj6EeSP+Plv0cYZBMPfirSaEvnnhMwRk2WH4n5XkNCQHygAiwTVNpvw3I1dCg==","shasum":"623c1d38a296aac5e1c4bde4618c4c93a6f4741d","tarball":"http://registry-npm.ywwl.com/unicorn-magic/download/unicorn-magic-0.2.0.tgz","fileCount":6,"unpackedSize":5260,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgFgrNNwe2qVLMX/9O6s4wAnPJ7qkLMiQ3hyHGVy92PQIhAMiTwZiTPPmNxlaQ3STtGx1A2jeJIwHN5Dd/tPFPlL89"}],"size":2522,"noattachment":false,"key":"/unicorn-magic/-/unicorn-magic-0.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicorn-magic_0.2.0_1715418993341_0.7741513442479997"},"_hasShrinkwrap":false,"publish_time":1715418993504,"_cnpm_publish_time":1715418993504},"0.1.0":{"name":"unicorn-magic","version":"0.1.0","description":"Some useful utilities I often need","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/unicorn-magic.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","node":"./node.js","default":"./default.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsc index.d.ts"},"keywords":["utilities","util","extras","url","path","delay","wait","settimeout","sleep"],"devDependencies":{"ava":"^5.3.1","in-range":"^3.0.0","time-span":"^5.1.0","typescript":"^5.2.2","xo":"^0.56.0"},"types":"./index.d.ts","gitHead":"67bb2fd1da1eecb252ba14284df14c0d234a8cfa","bugs":{"url":"https://github.com/sindresorhus/unicorn-magic/issues"},"homepage":"https://github.com/sindresorhus/unicorn-magic#readme","_id":"unicorn-magic@0.1.0","_nodeVersion":"20.9.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==","shasum":"1bb9a51c823aaf9d73a8bfcd3d1a23dde94b0ce4","tarball":"http://registry-npm.ywwl.com/unicorn-magic/download/unicorn-magic-0.1.0.tgz","fileCount":6,"unpackedSize":3450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2/PF7Nr91Pwn1n3dANpulazCJ5GVfyiSd0ZMl0Ya4rAiAiCrpwco38IOPtax0qarwoayF0Y5lXFrMFx+DNt7f4ow=="}],"size":1909,"noattachment":false,"key":"/unicorn-magic/-/unicorn-magic-0.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/unicorn-magic_0.1.0_1699545245376_0.4229783164232408"},"_hasShrinkwrap":false,"publish_time":1699545245533,"_cnpm_publish_time":1699545245533}},"readme":"# unicorn-magic\n\n> Some useful utilities I often need\n\n*I'm not accepting requests.*\n\n## Install\n\n```sh\nnpm install unicorn-magic\n```\n\n## Usage\n\n```js\nimport {delay} from 'unicorn-magic';\n\nawait delay({seconds: 1});\n\nconsole.log('1 second later');\n```\n\nYou can also import from the `/node` sub-export to explicitly get the Node.js-specific utilities (useful for bundler compatibility):\n\n```js\nimport {toPath} from 'unicorn-magic/node';\n```\n\n## API\n\nSee the [Node.js types](node.d.ts) and [default types](default.d.ts).\n","_attachments":{},"homepage":"https://github.com/sindresorhus/unicorn-magic#readme","bugs":{"url":"https://github.com/sindresorhus/unicorn-magic/issues"},"license":"MIT"}