user-agent-stripper
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

user-agent-stripper

npm install --save user-agent-stripper

import stripUserAgent from "user-agent-stripper";

stripUserAgent("MyCustomAgent") // MyCustomAgent
stripUserAgent("SomeRandomAgent/v1.2") // SomeRandomAgent/vx.x
stripUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36") // Chrome

Readme

Keywords

none

Package Sidebar

Install

npm i user-agent-stripper

Weekly Downloads

23

Version

1.0.1

License

none

Unpacked Size

8.26 kB

Total Files

12

Last publish

Collaborators

  • inventivetalent