cloudup-ua

cloudup useragent formatter/parser

npm install cloudup-ua
1 downloads in the last day
36 downloads in the last week
135 downloads in the last month

Cloudup user-agent utility

$ npm install cloudup-ua

.parse(str)

console.log(ua.parse(str));

{ name: 'cloudup-local',
  version: '1.10.0',
  build: '838',
  os: 'darwin',
  release: 'Darwin 13.0.0',
  hostname: 'Guillermos-MacBook-Air-3.local',
  model: 'MacBookAir4,2' }

.stringify(name, [obj])

console.log(ua.stringify('cloudup-client', { version: '1.0' }));
// => "cloudup-client (version: 1.0) (node: v0.8.25) (os: darwin) (release: 12.4.0) (hostname: Tylers-MacBook-Pro.local)"
npm loves you