koajs / koa

Expressive middleware for node.js using ES2017 async functions
https://koajs.com
MIT License
35.07k stars 3.22k forks source link

[feat] Replace npm dependency "only" #1802

Closed Sozialarchiv closed 1 month ago

Sozialarchiv commented 6 months ago

Describe the feature

The package "only" has no license information in the npm package. So it lets audits for licensing fail.

A ticket was created, but no reaction. For me the the package seems to be unmaintained. https://github.com/tj/node-only/issues/17

I suggest to add this trivial function to koa or to replace it with another npm package.

Checklist

fengmk2 commented 2 months ago

pr is welcome

kravorkid commented 1 month ago

@fengmk2 provided a PR here https://github.com/koajs/koa/pull/1824/files first time contributing to an npm package feel free to make some comments if something is wrong