@ng-web-apis/common
TypeScript icon, indicating that this package has built-in type declarations

4.1.3 • Public • Published

logo Common utils for Web APIs

npm version npm bundle size codecov

A set of common utils for consuming Web APIs with Angular

Tokens

  • WINDOW — provides access to global window object
  • NAVIGATOR — provides access to window.navigator object
  • NETWORK_INFORMATION — provides access to window.navigator.connection object
  • USER_AGENT — provides access to window.navigator.userAgent string
  • MEDIA_DEVICES — provides access to window.navigator.mediaDevices object
  • PERFORMANCE — provides access to window.performance object
  • ANIMATION_FRAME — shared Observable based on window.requestAnimationFrame
  • CACHES — provides access to window.caches object
  • CSS — provides access to window.CSS object or mock object if it's not available (i.e. in IE)
  • CRYPTO — provides access to window.crypto object
  • LOCATION — provides access to window.location object
  • LOCAL_STORAGE — provides access to window.localStorage object
  • SCREEN — provides access to window.screen object
  • SESSION_STORAGE — provides access to window.sessionStorage object
  • SPEECH_RECOGNITION — provides access to SpeechRecognition class or returns null if browser does not support it
  • SPEECH_SYNTHESIS — provides access to window.speechSynthesis object
  • PAGE_VISIBILITY — wrapper for document.addEventListener('visibilityChange') api
  • HISTORY — provides access to window.history object

Package Sidebar

Install

npm i @ng-web-apis/common

Weekly Downloads

35,202

Version

4.1.3

License

Apache-2.0

Unpacked Size

67.2 kB

Total Files

45

Last publish

Collaborators

  • marsibarsi
  • waterplea
  • vladimir.potekhin
  • defenderbass