meteor-desktop-localstorage

0.0.11 • Public • Published

Meteor Desktop localStorage npm version

Travis Travis Build Status AppVeyor Build status CircleCI CircleCI


This is a Meteor Desktop plugin.

Because of Electron and meteor-desktop implementation the builtin Chrome localStorage works unreliably.
This package provides a working localStorage substitute. Available as Meteor._localStorage.
API is here.
This also makes Meteor autologin work properly in Electron.

Usage

In your .desktop/settings.json add this package to your plugins list:

{
    "plugins": {
       "meteor-desktop-localstorage": {
            "version": "0.0.11"
        }
    }
}

It will also add omega:meteor-desktop-localstorage package to your Meteor project.

Settings

You can pass custom settings to the plugin, for example:

{
    "plugins": {
       "meteor-desktop-localstorage": {
            "version": "0.0.11",
            "fileName": "myCustomName.json"
        }
    }
}

Contribution

PRs are always welcome. Be sure to update the tests.

For smooth developing process you need to open two terminals. In the first one type npm run build-watch and in the second npm run test-watch.

Tests are run by AVA.

Package Sidebar

Install

npm i meteor-desktop-localstorage

Weekly Downloads

1

Version

0.0.11

License

MIT

Last publish

Collaborators

  • wojtkowiak