yarn add os-parser
const OSParser = require('os-parser')
OSParser()
//=> { name: 'Mac OS X', version: '10.13.1' }
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
os-parser © sinchang, Released under the MIT License.
Authored and maintained by sinchang with help from contributors (list).
sinchang.me · GitHub @sinchang · Twitter @sinchangwen