Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danpaz/ua-cmd
User agent string parsing from the command line
https://github.com/danpaz/ua-cmd
Last synced: 23 days ago
JSON representation
User agent string parsing from the command line
- Host: GitHub
- URL: https://github.com/danpaz/ua-cmd
- Owner: danpaz
- License: mit
- Created: 2016-07-19T01:52:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-28T00:49:15.000Z (over 8 years ago)
- Last Synced: 2024-09-14T11:08:34.866Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ua-cmd
[![npm version](https://badge.fury.io/js/ua-cmd.svg)](https://www.npmjs.com/package/ua-cmd)
User agent string parsing from the command line.
➜ ua-cmd "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36"
Chrome 50.0.2661.86
Mac OS 10.11.4➜ echo "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.86 Safari/537.36" | ua-cmd
Chrome 50.0.2661.86
Mac OS 10.11.4## Install
npm install -g ua-cmd
## Test
npm test