mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-29 17:04:26 +03:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user