{"name":"@eggjs/utils","version":"4.1.2","keywords":["egg","utils"],"author":{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"@eggjs/utils@4.1.2","homepage":"https://github.com/eggjs/utils#readme","bugs":{"url":"https://github.com/eggjs/utils/issues"},"dist":{"shasum":"ef4e1cc81195d09f233779e0296f54ee61ba214f","tarball":"http://registry-npm.ywwl.com/@eggjs/utils/download/@eggjs/utils-4.1.2.tgz","fileCount":36,"integrity":"sha512-Ub2BfQtpqvYIeesr1s/Hih2TR6uvMSsN1kYowTEjlWOIsQrAT7LMaAc/lhsXJSPUlordlo9BK3A31EYE++4ACw==","signatures":[{"sig":"MEYCIQDTtlE29JQFTNsyhvxe4/9VJHZJE0LhIcMIeMyWWaSdkAIhAJrZqt5ojnFOu+uHCaH//NLXKSQYdLKlhQet2FkKGjxg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eggjs%2futils@4.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":113898,"size":21534,"noattachment":false,"key":"/@eggjs/utils/-/@eggjs/utils-4.1.2.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"},"module":"./dist/esm/index.js","exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"57d5863a82b0e215ba2e1ea99f3d17f0ea234ac8","scripts":{"ci":"egg-bin cov","lint":"eslint src test --ext ts","test":"npm run test-local","clean":"rimraf dist","preci":"npm run clean && npm run lint && npm run prepublishOnly","pretest":"npm run clean && npm run lint -- --fix && npm run prepublishOnly","test-local":"egg-bin test","prepublishOnly":"tshy && tshy-after && attw --pack"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/eggjs/utils.git","type":"git"},"_npmVersion":"10.8.2","description":"Utils for all egg projects","directories":{},"_nodeVersion":"20.18.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"mm":"3","tshy":"3","coffee":"5","eslint":"8","rimraf":"6","egg-bin":"6","runscript":"2","npminstall":"7","tshy-after":"1","typescript":"5","@types/node":"22","@types/mocha":"10","@eggjs/tsconfig":"1","eslint-config-egg":"14","@arethetypeswrong/cli":"^0.17.2"},"_npmOperationalInternal":{"tmp":"tmp/utils_4.1.2_1735049179673_0.2891721119467898","host":"s3://npm-registry-packages-npm-production"},"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":1735049179883,"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":1735049179883,"dist-tags":{"beta":"5.0.2-beta.27","latest":"5.1.0","rc":"5.0.2-rc.1"}}