{"name":"@eggjs/utils","version":"4.4.1","engine":{"node":">=18.19.0"},"publishConfig":{"access":"public"},"description":"Utils for all egg projects","scripts":{"lint":"eslint src test --ext ts","pretest":"npm run clean && npm run lint -- --fix && npm run prepublishOnly","test":"egg-bin test","posttest":"npm run clean","test-local":"egg-bin test","preci":"npm run clean && npm run lint && npm run prepublishOnly","ci":"egg-bin cov","postci":"npm run clean","clean":"rimraf dist","prepublishOnly":"tshy && tshy-after && attw --pack"},"keywords":["egg","utils"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"repository":{"type":"git","url":"git://github.com/eggjs/utils.git"},"license":"MIT","dependencies":{},"devDependencies":{"@arethetypeswrong/cli":"^0.17.2","@eggjs/bin":"^7.0.0","@eggjs/tsconfig":"1","@types/mocha":"10","@types/node":"22","coffee":"5","eslint":"8","eslint-config-egg":"14","mm":"4","npminstall":"7","rimraf":"6","runscript":"2","snap-shot-it":"^7.9.10","tshy":"3","tshy-after":"1","typescript":"5"},"type":"module","tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","_id":"@eggjs/utils@4.4.1","gitHead":"eacd39f38efdbeb94ae5e05f0c86b5a6a4c46109","bugs":{"url":"https://github.com/eggjs/utils/issues"},"homepage":"https://github.com/eggjs/utils#readme","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/bu4ORRNSLSjrQQ4KDBgtyF92EmgmtdgjoXBIhBexxEqoV5Tg6kX4xdcG42cw+Cq3WBnUq/PzSthEPHbSlkQgg==","shasum":"f1a7b6669d3289b8e3bb61ba9ce7fbd4bfadd3b0","tarball":"http://registry-npm.ywwl.com/@eggjs/utils/download/@eggjs/utils-4.4.1.tgz","fileCount":46,"unpackedSize":146506,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eggjs%2futils@4.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAUCSvo8M10VcZPPly3G5240lFMmHhFdyx0LqfKIUpxiAiEA4WMFsNwDC1Wz0nktlQq0/9n99w2ie07Aaxbpj6zsLwc="}],"size":27365,"noattachment":false,"key":"/@eggjs/utils/-/@eggjs/utils-4.4.1.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utils_4.4.1_1741186800168_0.24235993167918357"},"_hasShrinkwrap":false,"readme":"# @eggjs/utils\n\n[![NPM version][npm-image]][npm-url]\n[![CI](https://github.com/eggjs/utils/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/utils/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n[![Node.js Version](https://img.shields.io/node/v/@eggjs/utils.svg?style=flat)](https://nodejs.org/en/download/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)\n\n[npm-image]: https://img.shields.io/npm/v/@eggjs/utils.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@eggjs/utils\n[codecov-image]: https://codecov.io/github/eggjs/utils/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/utils?branch=master\n[download-image]: https://img.shields.io/npm/dm/@eggjs/utils.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@eggjs/utils\n\nUtils for all egg projects.\n\n## Installation\n\n```bash\nnpm i @eggjs/utils\n```\n\n## API\n\n### `getPlugins(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n- {String} env - egg environment\n\n### `getLoadUnits(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n- {String} env - egg environment\n\n### `getConfig(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n- {String} env - egg environment\n\n### `getFrameworkPath(options)`\n\n- {String} baseDir - the current directory of application\n- {String} framework - the directory of framework\n\n## License\n\n[MIT](LICENSE)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=eggjs/utils)](https://github.com/eggjs/utils/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","publish_time":1741186800358,"maintainers":[{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"eggjs-admin","email":"fengmk2+eggjs@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"atian25","email":"atian25@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"wanghx","email":"whxaxes@gmail.com"},{"name":"hyj1991","email":"yeekwanvong@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"coolme200","email":"2001-wms@163.com"},{"name":"mansonchor.zzw","email":"mansonchor1987@gmail.com"},{"name":"hubcarl","email":"hubcarl@126.com"},{"name":"gemwuu","email":"gemwuu@gmail.com"},{"name":"akitasummer","email":"644171127@qq.com"}],"_cnpm_publish_time":1741186800358,"dist-tags":{"beta":"5.0.2-beta.27","latest":"5.1.0","rc":"5.0.2-rc.1"}}