Skip to content
This repository was archived by the owner on Mar 5, 2019. It is now read-only.

DVS-devtools/js-browser

Repository files navigation

js-browser

[!!!] The source code of this package is on https://github.com/docomodigital/js-utils, this repository will be removed asap

Build Status Coverage Status npm version Greenkeeper badge

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-browser/latest

or run the following command insite the js-browser folder:

npm run doc:open

About

Alternative method to manage previous and current page changements

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •