Open Portur opened 3 years ago
I made a fork https://github.com/kingyue737/useragent/commits/master to replace request
with axios
as NPM WARN is really annoying. Also update the outdated regexp list.
You can override the original dependency if you are using pnpm:
// package.json
{
"pnpm": {
"overrides": {
"useragent": "npm:@kingyue/useragent@^2.4.0"
}
}
}
@kingyue737 the npm warn disappears, thanks for your great work!
Hi,
This module uses request to auto update, however the package is now deprecated.
The solution would be to use axios
Axios has similar syntax and uses native promises.
eg.