{"name":"@eggjs/utils","version":"4.0.2","engine":{"node":">=18.19.0"},"publishConfig":{"access":"public"},"description":"Utils for all egg projects","scripts":{"lint":"eslint src test --ext ts","pretest":"npm run prepublishOnly","test":"npm run lint -- --fix && npm run test-local","test-local":"egg-bin test","preci":"npm run prepublishOnly","ci":"npm run lint && egg-bin cov && npm run prepublishOnly","contributor":"git-contributor","prepublishOnly":"tshy && tshy-after"},"keywords":["egg","utils"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com","url":"https://github.com/fengmk2"},"repository":{"type":"git","url":"git://github.com/eggjs/egg-utils.git"},"license":"MIT","dependencies":{},"devDependencies":{"@eggjs/tsconfig":"1","@types/mocha":"10","@types/node":"20","coffee":"5","egg-bin":"6","eslint":"8","eslint-config-egg":"13","git-contributor":"2","mm":"3","npminstall":"7","runscript":"1","tshy":"1","tshy-after":"1","typescript":"5"},"type":"module","tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"exports":{"./package.json":"./package.json",".":{"import":{"source":"./src/index.ts","types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"source":"./src/index.ts","types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","_id":"@eggjs/utils@4.0.2","gitHead":"32c2b86c09bf28e9699693bd61aeb79663871b8c","bugs":{"url":"https://github.com/eggjs/egg-utils/issues"},"homepage":"https://github.com/eggjs/egg-utils#readme","_nodeVersion":"18.20.3","_npmVersion":"10.7.0","dist":{"integrity":"sha512-qv6nmdMiydQYhOUfTKr8BrHU5xQJOsN/mEBQ95GUN1csnKcYulfxwT9iqxKzEET8mxG+TPQcttmuyfgMNS2HRw==","shasum":"4b9e7b136b7c9dc270bcb01ad67ebcd6049e040d","tarball":"http://registry-npm.ywwl.com/@eggjs/utils/download/@eggjs/utils-4.0.2.tgz","fileCount":35,"unpackedSize":81445,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eggjs%2futils@4.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDc0e/zAn3fAWJYTyuLe+gVDXoUz5FXibmbGRjcVI4ULAIgWKhw1dILC7NI2zNpWRMSQscf9hmgIl/Mhi6QARXoR2Y="}],"size":16628,"noattachment":false,"key":"/@eggjs/utils/-/@eggjs/utils-4.0.2.tgz"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"akitasummer","email":"644171127@qq.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"gemwuu","email":"gemwuu@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"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/utils_4.0.2_1718639965403_0.9473417962877606"},"_hasShrinkwrap":false,"readme":"# @eggjs/utils\n\n[![NPM version][npm-image]][npm-url]\n[![CI](https://github.com/eggjs/egg-utils/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg-utils/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\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/egg-utils/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/egg-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<!-- GITCONTRIBUTOR_START -->\n\n## Contributors\n\n|[<img src=\"https://avatars.githubusercontent.com/u/360661?v=4\" width=\"100px;\"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/156269?v=4\" width=\"100px;\"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/32174276?v=4\" width=\"100px;\"/><br/><sub><b>semantic-release-bot</b></sub>](https://github.com/semantic-release-bot)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/5345266?v=4\" width=\"100px;\"/><br/><sub><b>a526672351</b></sub>](https://github.com/a526672351)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/2842176?v=4\" width=\"100px;\"/><br/><sub><b>XadillaX</b></sub>](https://github.com/XadillaX)<br/>|[<img src=\"https://avatars.githubusercontent.com/u/1974254?v=4\" width=\"100px;\"/><br/><sub><b>maqic</b></sub>](https://github.com/maqic)<br/>|\n| :---: | :---: | :---: | :---: | :---: | :---: |\n[<img src=\"https://avatars.githubusercontent.com/u/7284558?v=4\" width=\"100px;\"/><br/><sub><b>duncup</b></sub>](https://github.com/duncup)<br/>\n\nThis project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Mon May 29 2023 14:07:36 GMT+0800`.\n\n<!-- GITCONTRIBUTOR_END -->\n","publish_time":1718639965570,"_cnpm_publish_time":1718639965570,"dist-tags":{"beta":"5.0.2-beta.27","latest":"5.1.0","rc":"5.0.2-rc.1"}}