1.0.8 • Published 3 years ago

browser-store-test-data v1.0.8

Weekly downloads
-
License
Unlicense
Repository
github
Last release
3 years ago

npm dependencies Status install size GitHub issues

Browser Store Test Data

A simple way to load test data into the browser store. Supports IndexedDB.

Essentially when developing, you provide a file with some test data. This test data is loaded into the browser store & ready before your application runs. Your application then runs & reads test data from the browser store.

Index

Installation

# Using npm, installing to local project (development)
npm i -D browser-store-test-data

Usage

The main intended method to use this in your project via webpack plugin.

Webpack Plugin Usage

// load the library & add to plugins section with otions. Specify test data file(s) 
const BrowserStoreTestDataPlugin = require('browser-store-test-data')

plugins: [
    new BrowserStoreTestDataPlugin(
      {
        browserDatabase: '[browser-database-name]',
        testData: [
          {
              collectionName: 'collection-name',
              dataFile: '.path/to/file/dir'
          }
        ]
      }
    )    
]    

License

(Unlicense) See https://unlicense.org

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago