Skip to content

Commit

Permalink
[hotfix]update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mecoepcoo committed Mar 26, 2019
1 parent df1f04f commit d909296
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d909296

Please sign in to comment.