think-store-file
v1.1.1
Published
store content use file
Downloads
465
Keywords
Readme
think-store-file
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