Backport - Add new feature: parse user-agent in CLI using npx ua-parser-js "[INSERT-UA-HERE]" and print the result in JSON format

(cherry picked from commit 150d3c6b4a)
This commit is contained in:
Faisal Salman
2024-09-10 20:15:02 +07:00
parent cede70136b
commit dfa62b6e7a
2 changed files with 5 additions and 0 deletions

View File

@@ -153,6 +153,7 @@
"dist",
"src"
],
"bin": "./script/cli.js",
"scripts": {
"build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments '/^ UA/' && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments '/^ UA/' --compress --mangle",
"test": "jshint src/ua-parser.js && mocha -R nyan test/test.js",