{"name":"@eggjs/utils","version":"4.0.0","keywords":["egg","utils"],"author":{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"@eggjs/utils@4.0.0","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"}],"homepage":"https://github.com/eggjs/egg-utils#readme","bugs":{"url":"https://github.com/eggjs/egg-utils/issues"},"dist":{"shasum":"4076a57a2714722ad2cb110a5269d54903110372","tarball":"http://registry-npm.ywwl.com/@eggjs/utils/download/@eggjs/utils-4.0.0.tgz","fileCount":35,"integrity":"sha512-qEBtVv0YzyXIfyrdf+EgKx1w38enVe/bAL+BSMAO/idYpc3oGC6ZJcNbVOkXNPQ7ba9wNApzIOtJ1U94aQPQkg==","signatures":[{"sig":"MEQCIFBo6XA8nekMR/EQlvQWlhY3zNmN44EnzLgvKhDt6jukAiAz3DHQMPNvPNnEomaIc/He7RCKAi1S8fMqOGSgvG04hg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eggjs%2futils@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79817,"size":16313,"noattachment":false,"key":"/@eggjs/utils/-/@eggjs/utils-4.0.0.tgz"},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","engine":{"node":">=18.19.0"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","source":"./src/index.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","source":"./src/index.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"85555be7e7b35bae9b75960accb1a68edce470f3","scripts":{"ci":"npm run lint && egg-bin cov && npm run prepublishOnly","lint":"eslint src test --ext ts","test":"npm run lint -- --fix && npm run test-local","preci":"npm run prepublishOnly","pretest":"npm run prepublishOnly","test-local":"egg-bin test","contributor":"git-contributor","prepublishOnly":"tshy && tshy-after"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/eggjs/egg-utils.git","type":"git"},"_npmVersion":"10.7.0","description":"Utils for all egg projects","directories":{},"_nodeVersion":"18.20.3","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mm":"3","tshy":"1","coffee":"5","eslint":"8","egg-bin":"6","runscript":"1","npminstall":"7","tshy-after":"1","typescript":"5","@types/node":"20","@types/mocha":"10","@eggjs/tsconfig":"1","git-contributor":"2","eslint-config-egg":"13"},"_npmOperationalInternal":{"tmp":"tmp/utils_4.0.0_1718632200661_0.7280635725729272","host":"s3://npm-registry-packages"},"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":1718632200848,"_cnpm_publish_time":1718632200848,"dist-tags":{"beta":"5.0.2-beta.27","latest":"5.1.0","rc":"5.0.2-rc.1"}}