npm.io
1.1.1 • Published 4 years ago

think-store-file

Licence
ISC
Version
1.1.1
Deps
2
Size
9 kB
Vulns
0
Weekly
0
Stars
2

think-store-file

Build Status Coverage Status npm

think-store-file use file to store content

Usage

import StoreFile from 'think-store-file';
let storeFileInst = new StoreFile(storePath);

let relativePath = 'abc/a.js';
await storeFileInst.set(relativePath, 'Thinkjs'); // set 'Thinkjs' as content
await storeFileInst.get(relativePath); // Thinkjs
await storeFileInst.delete(relativePath); // delete a.js

Keywords