@docomodigital/js-browser

v3.0.2
JsBrowser provides you an alternative method to manage previous and current page changements.

js-browser

npm version

Provides you an alternative method to manage previous and current page changements.

Is particularly used to get query params as object and to get the previous page in order to implement an easy and basic history in your routing.

Usage

import { Browser } from 'js-browser';

// Get previous page
const prevPage = Browser.getPrevPage();

// Set browser new state
Browser.shiftPage('/home'); 

// Get query params in your url
const queryParams = Browser.getQueryParams();

Installation

NPM

npm install --save @docomodigital/js-browser

Documentation

To read documentation, go to:

http://docomodigital.github.io/js-utils/js-browser/latest

npm i @docomodigital/js-browser

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 12/16/2019

Downloads