1.0.7 • Published 9 months ago

@jswork/next-gm-store-engine v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

next-gm-store-engine

Store engin for tampermonkey GM_storage.

version license size download

installation

npm install -S @jswork/next-gm-store-engine

apis

apiparamsdescription
setItem(key,value)Set vlaue by key.
getItem(key)Get value by key.
removeItem(key)Remove a item from storage.
clear-Clear the storage.

usage

import NxGmStoreEngine from '@jswork/next-gm-store-engine';

// Must be grant:

// @grant GM_deleteValue
// @grant GM_listValues
// @grant GM_setValue
// @grant GM_getValue


// basic usage:
NxGmStoreEngine.setItem('afei', 'feizheng');
NxGmStoreEngine.getItem('afei');
NxGmStoreEngine.removeItem('afei');
NxGmStoreEngine.clear();

license

Code released under the MIT license.

1.0.7

9 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

2 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