diff --git a/package.json b/package.json index 425be99..906fc29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tz-storage", - "version": "1.0.1", + "version": "1.0.2", "description": "A light-weight localStorage tool.", "main": "index.js", "types": "types/index.d.ts", diff --git a/readme.md b/readme.md index 013ded6..c05013e 100644 --- a/readme.md +++ b/readme.md @@ -40,6 +40,14 @@ Set a default value in advance: storage.defaultValue = 'nothing' ``` +Set options by config: +```javascript +storage.config({ + namespace: 'space', + defaultValue: 'empty' +}) +``` + ## Set Set a storage with any types: ```javascript