{"_id":"make-asynchronous","_rev":"8-3b4032989ef9af2f2ddfbc004d19259d","name":"make-asynchronous","dist-tags":{"latest":"2.1.0"},"versions":{"0.1.0":{"name":"make-asynchronous","version":"0.1.0","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","thread","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@0.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/buffer":"off","n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"77a1e5579b99cd8ca5fc848f3a5d6bfdc242df17","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-0.1.0.tgz","fileCount":5,"integrity":"sha512-HhwhPTbqf2dwE/swlkQDZ+C8YPQgkWuAMkD9Tet0w5Wo7rF65eCENwy73cP98DAj3opmp6jdDvIRhRYGi6Ukyw==","signatures":[{"sig":"MEYCIQCWKUUL50uzcYDUNBOENW8/kr8698rMOfF6J01+JjKs+QIhAJTdEAS+bsnzHO/WE6RV/A48UqvYiOqi66FwI+FJhD/x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6088,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuNczACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqc3xAAodISWm7h6U09bcYsZK/sXgxZRD+iZ2VkhL2DMgIsTLjXdyIi\r\ntkcUGIEKmQgWl49VkV/vI643Ba3u8+cx+5Uq5Dv1jz/S7AtFuuX09ph+CiJ0\r\ndnDdTGBczy9gQdhdukPSPn2Gmv8z+u2ITkOZaWA3wPNRHjkVRYQN049O/guK\r\nihH4pYWHkpbfW7IprbGKCN1gO5WTTXi+p3GsDW1y9L9cSM4fEUc/bEQ694RK\r\ngK7XYd+JDUAzuanjw60nGUiUI3nt2ORwJ4caHplP0VskhZqUr0yPcP0Kjqbb\r\nmCvu0fGSWdc2GlZcS5/ep2qz2w/YobTIhBaRVGHx8z+5ixZBVix5pfbiK+Tm\r\nS/hnNXYS58S89hF1GAuD+o8NLYFrLmLsDCxB98zoOwcsgSDW2wIOCElfhcxC\r\nvxCAphLAOX+7zXovPpjUxwc7gO/OCFEYjIbZtWzq/7rFizzwfbNPlcHLrsh3\r\nvVmeZKQHQ2fgjSM9FKpLgJ3eAHzZb96FzozkVnogNnxl0ar8cwcFACLwMVj/\r\nKWTjalh3gh4NkpjvL5wT4sb4b4su7fY5QE5a6y5ZUPuDspKniL7MA0NzOpp7\r\nyROVmnBHIdNyB0HQv64Dt9z1TN6OgpQniYMoGQWX04xiJU3tThgI8tx8wgPV\r\ncegQMnGBvRhVcKWdJ/Pr7zwieFsp3uGBBv4=\r\n=ZXNc\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","engines":{"node":">=14.16"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"de08673909684404ebe3f582add17a0e81c9b13f","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"8.3.2","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"_nodeVersion":"14.19.3","dependencies":{"type-fest":"^2.14.0","web-worker":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.50.0","ava":"^4.3.0","tsd":"^0.21.0","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_0.1.0_1656280883037_0.5019612294164111","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"make-asynchronous","version":"0.2.0","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","thread","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@0.2.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/buffer":"off","n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"c415fd843510ff9910e99dc0ad34949235ed67e7","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-0.2.0.tgz","fileCount":5,"integrity":"sha512-Vq3EvxfiU9OwNNCHD3664brsHcyY8Gn44NdlHXZAjwpcmMWg+ZBAKg1rrcnO6fqFe/aU1ejbQvmZURxn0xAPWA==","signatures":[{"sig":"MEQCIHDKsjWOL2LPk3Ak+FObVU+zIAIIYxOY/j577fzu6CIdAiAkigpBXVNNJ/tiyToVcbxhFl+w4x1SxRoAH2WmbxM+Bw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8472,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivDZFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNJg//aQyfDiN7XrvMggCkwtPY5UGWirsk2OEryyO38GwoFNTnQzxE\r\n1emo5nVtf906wjb5AsAezXfQIbp5aJj81A4d+bQcMhxOuWpHgdXHwYluxpYI\r\nDuUYpBrB0HEhicVnTqTQcaUuCjkzPy9R6aPRxiGn41mYR9D9CTteWrC/KfeX\r\nWOxUdPz0VTuG9AFzdGmj4sg6IJXwGxTiLMD2sbvGuLLVzSclrdY0D/Z16Lyf\r\nEaknBbRMYvbykRDdRMcu0aYshVmvpUHyIRFFB+IlesZRj3kRWE6dCE2/oirM\r\ngKuL96Z2dnklqwhS+rsimufoxZEmqcVj0/k2TiQYZN3r8boBNDQCxxxZ0lZo\r\nh9J2gMi26ibL8YEW6m6DRaVklWWH2xENH9oJVSecKB/8vWMPOM31zkPM17EB\r\nbPb8ThZKEFfos7n6C1tgjXKwG6I4O96Nj0855jWMQ3uaNu2fBJf2Pu5dGPCg\r\nt2QJSycgRRbj5fDgTGvfriFYHa+dnx6QCNQ3KDB3R9Y+UHQoUTxyq6I6pBR5\r\nXzSG0uPT2R/rlK03HvB+3SFnQdXg7vT1bSPqrA1sJuMayfOfIXA3w+uJ+WWY\r\nwb7DI6+9kzcGAm4+7nIaLulO9mXUJ8Sb7l7R0qAuSh4Jap6AEbyIimN2SM6U\r\nH4tzXvcpf+bvAjKcvY8sxsMj+0g5p4Opvwc=\r\n=WbtU\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","engines":{"node":">=14.16"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"2d3fdfaa0b972876b197f12e0eb3fd0ba79bf6fb","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"8.3.2","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"_nodeVersion":"14.19.3","dependencies":{"p-event":"^5.0.1","type-fest":"^2.14.0","web-worker":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.50.0","ava":"^4.3.0","tsd":"^0.21.0","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_0.2.0_1656501829164_0.672718935531931","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"make-asynchronous","version":"0.3.0","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","thread","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@0.3.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/buffer":"off","n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"5efd81cf0fac8ffa3f7057813f7af66d5298b5ce","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-0.3.0.tgz","fileCount":5,"integrity":"sha512-dSrqQ792uga0Di4EBZb3grzMkF4yRAWsMXcuzqqlY9Gt6lm0fiQvZ3ZF4pcxT9ER0kh3lX0VRZuTqofvH7yeeg==","signatures":[{"sig":"MEYCIQDAwdHTnS/A7aX8AbG1YFxCBVAOTIy8uXAGmprgg5PgCAIhAOrgVKMuLhacmkQGYf3VamEmDVSPqSrHvqYPxR4Qrwil","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1/1iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVlQ//f43wEZQVI/FDaig+7JObnQgdZSZDz2lNR/15z1jx1l83Mb1u\r\nlXVrgL+3MOQZbgScPjLeY1Fac20ZTfiNintZ013mIbsToPNK0JMS8X3EsJYF\r\n6MdzSjL3k6X/+JJE/rA/+MGGRnhLszdocPajZsiCa0DMG1P4fnSKif7fDBiX\r\nFvaCqZdkNVmQ6i/rzvG5ap9Ax3Urn+lmVm6sjS41obuP7fmqiq5AfmfUbIsE\r\nRjcCEWxELEVxniND0qx9jKIXdpdcd7EZPg5ac/KFezFjkjdnCQTRWnGNUWSx\r\noI3OaGzPcggu5FRn9BW63bDZI7d/n2gJuuu0YhwcEmRZvhmAHkmBza9yxQmi\r\nzI0lxnK5RJk5d7wsNjEJmfQQY/t60YDEbR8f35GE9303SW49KRABSICmoxMG\r\nxuNdb1auK7o60qFr8a8yIzyDsotY2AzZERZrPBceHIl1Qxn1kAywqWNNlHDq\r\nNXJgBhxaSi31DKKE67PGHgYRdeIoPP1zehzrBg9rNhk2XKlUJsYWzgSbNj06\r\nVxA6dAP7WZDoXRsTgqlTjj+r+ptl/hHb9aXdZjOxmTctj+nAJM1G34pGPBFv\r\ns0qLNcidDmJX7OdGHZ708Y+l9l2zXwSGALA7ueXXlU+uq2esz9X1RucpkkWz\r\n/zFP+soc7mpVBvY66yFUZbdRbrByItQolys=\r\n=XV/D\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","types":"./index.d.ts","engines":{"node":">=14.16"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"8be62c951084a3a950bc168f6a041c3d1d962cab","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"8.3.2","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"_nodeVersion":"14.19.3","dependencies":{"p-event":"^5.0.1","type-fest":"^2.14.0","web-worker":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.50.0","ava":"^4.3.0","tsd":"^0.21.0","delay":"^5.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_0.3.0_1658322273987_0.18548501214179502","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"make-asynchronous","version":"1.0.0","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","thread","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/buffer":"off","n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"a65f848bbdce8b9e7907530ffe303bb4da2ed30e","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-1.0.0.tgz","fileCount":5,"integrity":"sha512-G+fO2BSupFncFuzrpvMasZ30RvPDH4q/DliEmwl7AAhOG6SxcIuVx/SG6ZM4p3m6k+dF5kZ4cTCYu6Z4TenCCQ==","signatures":[{"sig":"MEUCIHZQ5bbo8Lfs8VkEBPE2oFAqBW2KTaV6G7vWKWu3ZiVfAiEAj+vJozRbgL6YWLtVdD6ILULkESMZG2VDc4RGADIoNUA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11425},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"3c69d2820238fbe2fd06084fb1327fd1478d3204","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"9.2.0","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"_nodeVersion":"18.18.2","dependencies":{"p-event":"^6.0.0","type-fest":"^4.6.0","web-worker":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","delay":"^6.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_1.0.0_1699107664292_0.9898476917283539","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"make-asynchronous","version":"1.0.1","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","thread","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@1.0.1","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/buffer":"off","n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"5ff174bae4e4371746debff112103545037373ee","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-1.0.1.tgz","fileCount":5,"integrity":"sha512-T9BPOmEOhp6SmV25SwLVcHK4E6JyG/coH3C6F1NjNXSziv/fd4GmsqMk8YR6qpPOswfaOCApSNkZv6fxoaYFcQ==","signatures":[{"sig":"MEYCIQDZjYLqenxGLY9jJcmi9pgyrRuQJocuPqiUSiY68GjFfQIhALu6BVf+fNqLGpu7NlDKS0Vm7hed4m0cGFOA4b36HmnA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11447},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"7fce502f8c5f7d2a4af20f253e9dbb14c68fa21c","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"10.6.0","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"sideEffects":false,"_nodeVersion":"22.6.0","dependencies":{"p-event":"^6.0.0","type-fest":"^4.6.0","web-worker":"1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","delay":"^6.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_1.0.1_1726941604392_0.6486585080991079","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"make-asynchronous","version":"1.1.0","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","thread","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@1.1.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/buffer":"off","n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"6225f7f1ccaab9acaac5e2fcd0b075afefff19aa","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-1.1.0.tgz","fileCount":5,"integrity":"sha512-ayF7iT+44LXdxJLTrTd3TLQpFDDvPCBxXxbv+pMUSuHA5Q8zyAfwkRP6aHHwNVFBUFWtxAHqwNJxF8vMZLAbVg==","signatures":[{"sig":"MEUCIQDjewuFCi+UNkykxs0dpAjBdbY3tnhvtSLWcfLBYJ6UyAIgf/1+vrFK7oJov8l6Ijopa030BPrUNKlVQUvhqe9RRyE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11448},"type":"module","types":"./index.d.ts","engines":{"node":">=18"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"27b024dafbae7ea67fafc04ebf5f8e483c23d04c","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"11.8.0","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"sideEffects":false,"_nodeVersion":"25.6.0","dependencies":{"p-event":"^6.0.0","type-fest":"^4.6.0","web-worker":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.56.0","ava":"^5.3.1","tsd":"^0.29.0","delay":"^6.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_1.1.0_1771946974477_0.8898504579978774","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"make-asynchronous","version":"2.0.0","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","cpu","expensive","pool"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"make-asynchronous@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"xo":{"rules":{"n/prefer-global/process":"off"}},"ava":{"workerThreads":false},"dist":{"shasum":"55314eb5fee6d208efb3eeb04f524bf515090d6b","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-2.0.0.tgz","fileCount":5,"integrity":"sha512-H+Qffa5qEvuSfhT3VmBTjKTkLZ0lAHVIfAfkm/MElB45qfsd4ZP+4U+B4jizglwlATEge1V7JvvMVirL4hQ+8Q==","signatures":[{"sig":"MEYCIQDlucpScssXnIXpMPQxiXGmkixLtcbOrF2JLoUQWRn6YgIhAP2eQWGsMStEuEkB0YS7CmlQaoFG12I+f7DjTCrZhzue","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14351},"type":"module","types":"./index.d.ts","browser":{"node:worker_threads":false},"engines":{"node":">=22.15.0"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"bd0d61eeb73fe45a9fbbb39c930b5b406c0ab24d","scripts":{"test":"xo && ava && tsd"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"11.16.0","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"p-event":"^7.1.0","type-fest":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^2.0.2","ava":"^8.0.1","tsd":"^0.33.0","delay":"^7.0.0","in-range":"^3.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/make-asynchronous_2.0.0_1781349909358_0.2815586373284169","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"xo":{"rules":{"n/prefer-global/process":"off"}},"_id":"make-asynchronous@2.1.0","ava":{"workerThreads":false},"bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"dist":{"shasum":"6d820cfeda158cd26d51240de0bb81ea7177671d","tarball":"https://registry.npmjs.org/make-asynchronous/-/make-asynchronous-2.1.0.tgz","fileCount":5,"integrity":"sha512-GUKWKLC2e9oxcAlQpQuhbmM6GSJA+T20WDo3uGIgzweO4VIT24ymqlp1hTpEQcypPnMxz3DhJnd7V6mjZ+k42Q==","signatures":[{"sig":"MEUCIEYR+oGjqNvF7p1VNIr6ltFCIII9SWRV9wskbqUCeEsPAiEApoQwYyLEdjxVfsWithDeRrc7x/e3jGcoF25Rsflc+1w=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDVufhi8gTfNzuxrzl8qhLvig7fvwuUwIkg7uKFTd0OQIhAPfMFa3RP6WYlTCOKnrAQ6AqgNbF1IpEY/oD/RqLpUw2"}],"unpackedSize":18086},"name":"make-asynchronous","type":"module","types":"./index.d.ts","author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"browser":{"node:worker_threads":false},"engines":{"node":">=22.15.0"},"exports":{"types":"./index.d.ts","default":"./index.js"},"funding":"https://github.com/sponsors/sindresorhus","gitHead":"3795e59168e7012e5998916d1b8baff600485d8b","license":"MIT","scripts":{"test":"xo && ava && tsd"},"version":"2.1.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"homepage":"https://github.com/sindresorhus/make-asynchronous#readme","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","cpu","expensive","pool"],"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"_npmVersion":"12.0.1","description":"Make a synchronous function asynchronous by running it in a worker","directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"sideEffects":false,"_nodeVersion":"26.9.0","dependencies":{"type-fest":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^2.0.2","ava":"^8.0.1","tsd":"^0.33.0","delay":"^7.0.0","time-span":"^5.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/make-asynchronous_2.1.0_1790364573816_0.7428119855142461"}}},"time":{"created":"2022-06-26T22:01:23.035Z","modified":"2026-09-25T19:29:34.082Z","0.1.0":"2022-06-26T22:01:23.215Z","0.2.0":"2022-06-29T11:23:49.338Z","0.3.0":"2022-07-20T13:04:34.188Z","1.0.0":"2023-11-04T14:21:04.513Z","1.0.1":"2024-09-21T18:00:04.576Z","1.1.0":"2026-02-24T15:29:34.637Z","2.0.0":"2026-06-13T11:25:09.498Z","2.1.0":"2026-09-25T19:29:33.920Z"},"bugs":{"url":"https://github.com/sindresorhus/make-asynchronous/issues"},"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/make-asynchronous#readme","keywords":["function","asynchronous","async","thread","dispatch","synchronous","sync","web","worker","cpu","expensive","pool"],"repository":{"url":"git+https://github.com/sindresorhus/make-asynchronous.git","type":"git"},"description":"Make a synchronous function asynchronous by running it in a worker","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# make-asynchronous\n\n> Make a synchronous function asynchronous by running it in a [worker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API)\n\nThis makes it super simple to offload some expensive work without having to deal with the complex Web Workers API.\n\n**Please upvote [this Node.js issue](https://github.com/nodejs/node/issues/43583) 🙏** It would let us simplify the code.\n\n*Works in Node.js and browsers.*\n\n## Install\n\n```sh\nnpm install make-asynchronous\n```\n\n## Usage\n\n```js\nimport makeAsynchronous from 'make-asynchronous';\n\nconst fn = makeAsynchronous(number => {\n\treturn performExpensiveOperation(number);\n});\n\nconsole.log(await fn(2));\n//=> 345342\n```\n\n## API\n\n### makeAsynchronous(function, options?)\n\nReturns a wrapped version of the given function which executes asynchronously in a background thread (meaning it will not block the main thread).\n\nThe given function is serialized, so you cannot use any variables or imports from outside the function scope. You can instead pass in arguments to the function.\n\n### makeAsynchronousIterable(function, options?)\n\nMake the iterable returned by a function asynchronous by running it in a worker.\n\nThe given function is serialized, so you cannot use any variables or imports from outside the function scope. You can instead pass in arguments to the function.\n\n```js\nimport {makeAsynchronousIterable} from 'make-asynchronous';\n\nconst fn = makeAsynchronousIterable(function * (number) {\n\tyield * performExpensiveOperation(number);\n});\n\nfor await (const number of fn(2)) {\n\tconsole.log(number);\n}\n```\n\n#### options\n\nType: `object`\n\nThe options are the same for `makeAsynchronous` and `makeAsynchronousIterable`.\n\n##### baseUrl\n\nType: `string | URL`\n\nBase URL used to resolve bare dynamic imports in Node.js workers.\n\nPass `import.meta.url` when the function dynamically imports dependencies from the module that creates the wrapper.\n\n```js\nimport makeAsynchronous from 'make-asynchronous';\n\nconst fn = makeAsynchronous(async () => {\n\tconst {default: package_} = await import('package-owned-by-this-module');\n\treturn package_;\n}, {\n\tbaseUrl: import.meta.url,\n});\n```\n\n#### fn.withSignal(signal)\n\nThe function returned by `makeAsynchronous` and `makeAsynchronousIterable` has an additional method which allows an [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) to be provided.\n\n```js\nimport makeAsynchronous from 'make-asynchronous';\n\nconst fn = makeAsynchronous(number => {\n\treturn performExpensiveOperation(number);\n});\n\nconst controller = new AbortController();\nconst timeoutId = setTimeout(() => {\n\tcontroller.abort();\n}, 1000); // 1 second timeout\n\nconst result = await fn.withSignal(controller.signal)(2);\nclearTimeout(timeoutId);\n\nconsole.log(result);\n//=> 345342\n```\n\n## Related\n\n- [make-synchronous](https://github.com/sindresorhus/make-synchronous) - Make an asynchronous function synchronous\n- [sleep-synchronously](https://github.com/sindresorhus/sleep-synchronously) - Block the main thread for a given amount of time\n","readmeFilename":"readme.md"}