Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-bowser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-bowser

angular 2 Bowser

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
65
decreased by-9.72%
Maintainers
1
Weekly downloads
 
Created
Source

Commitizen friendly semantic-release travis build npm GitHub release npm

ngx-bowser

A wrap service for bowser

It works with angular version 2.0.0 and up

Dependencies

  • Angular >=2.0.0
  • bowser

Install

You can get it on npm.

npm install ngx-bowser --save

Build project

1. npm i

2. npm run build

why ?

It is AoT compatible, so you don't need to worry about how to deal with 3rd party library with AoT.

It also comes with better type definition.

How to use:

in ngModule:

 imports: [BowserModule],
 providers: [BowserService],

It provides all apis that bowser provides.

It also allows you to access bowser directly by BowserService.bowser

Additional Features:

  1. BowserService.profile: return a string of "[browser]-[version] ([user agent])"

  2. BowserService.userAgent: return window.navigator.userAgent

Keywords

FAQs

Package last updated on 16 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc