Nutritious Polygonal Meatball

    storage-mock

    2.1.0 • Public • Published

    storage-mock Build Status

    Web Storage API Mock with events support

    Install

    $ npm install --save storage-mock
    

    Usage

    const mockedWindow = require('storage-mock');
    
    mockedWindow.addEventListener('storage', e => {
      e.key // item-key
      e.oldValue // null
      e.newValue // item-value
    });
    
    mockedWindow.localStorage.setItem('item-key', 'item-value');

    License

    MIT © Eugene Datsky

    Install

    npm i storage-mock

    DownloadsWeekly Downloads

    500

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    6.07 kB

    Total Files

    5

    Last publish

    Collaborators

    • princed