{"_id":"@ahel/f-noop","name":"@ahel/f-noop","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ahel/f-noop","version":"0.0.1","description":"Function does nothing, this lib supply noop fn and noop fn maker.","bugs":{"url":"https://github.com/Tencent/hel/issues"},"repository":{"type":"git","url":"git+https://github.com/Tencent/hel.git","directory":"packages/f-noop"},"license":"MIT","author":{"name":"fantasticsoul","email":"624313307@qq.com","url":"https://github.com/fantasticsoul"},"main":"dist/index.js","module":"dist/index.mjs","unpkg":"dist/index.global.js","types":"index.d.ts","scripts":{"build":"tsup","build:watch":"tsup --watch","test":"jest"},"dependencies":{},"devDependencies":{},"bundleDependencies":[],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"deprecated":false,"_id":"@ahel/f-noop@0.0.1","gitHead":"4e79f266ef4c3f765a27e5c59acbb8d5c47a6386","homepage":"https://github.com/Tencent/hel#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-v7he3AgjBQlcW+O8eDi//bn2LU9WcpHpFVElRKSUjpDGRk/wE9+s2rqegO2DiUygSx6eyUVoFr5dZMX4TPeJxA==","shasum":"3b7dbaf941a5dc2f073acd6171ee22b5e3ad3cfa","tarball":"https://registry.npmjs.org/@ahel/f-noop/-/f-noop-0.0.1.tgz","fileCount":13,"unpackedSize":16162,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHGe0Tp0wJbXM5id8Y9xDvAWHdlWIzk5JdyDDFlyl2SPAiBV3gPERXCoEE3177em+68vgDntSP45KBUZcP3Yq9HKsA=="}]},"_npmUser":{"name":"fantasticsoul","email":"624313307@qq.com"},"directories":{},"maintainers":[{"name":"fantasticsoul","email":"624313307@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/f-noop_0.0.1_1757760145587_0.38773475917910916"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-13T10:42:25.502Z","0.0.1":"2025-09-13T10:42:25.785Z","modified":"2025-09-13T10:42:26.111Z"},"maintainers":[{"name":"fantasticsoul","email":"624313307@qq.com"}],"description":"Function does nothing, this lib supply noop fn and noop fn maker.","homepage":"https://github.com/Tencent/hel#readme","repository":{"type":"git","url":"git+https://github.com/Tencent/hel.git","directory":"packages/f-noop"},"author":{"name":"fantasticsoul","email":"624313307@qq.com","url":"https://github.com/fantasticsoul"},"bugs":{"url":"https://github.com/Tencent/hel/issues"},"license":"MIT","readme":"# @helux/f-noop\n\n空函数合集，一共导出了以下空函数或空函数创建函数，可按需使用\n\n```ts\nexport {\n  makeNoopAny,\n  makeNoopAnyAsync,\n  noopAny,\n  noopAnyAsync,\n  noopNum,\n  noopNumAsync,\n  noopObj,\n  noopObjAsync,\n  noopStr,\n  noopStrAsync,\n  noopVoid,\n  noopVoidAsync,\n};\n```\n\n## 使用方式\n\n同步的 any 空函数\n\n```ts\nimport { noopAny } from '@helux/f-noop';\n\nconst fn = noopAny;\nfn();\n```\n\n异步的 any 空函数\n\n```ts\nimport { noopAnyAsync } from '@helux/f-noop';\n\nconst fn = noopAnyAsync;\nfn().then(console.log);\n```\n\n创建自定义返回结果的异步空函数\n\n```ts\nimport { makeNoopAnyAsync } from '@helux/f-noop';\n\nconst fn = makeNoopAnyAsync(333);\nfn().then(console.log); // print 333\n```\n","readmeFilename":"README.md","_rev":"1-45770aafff46650d61568384e6e62f99"}