Skip to content

thinkjs/think-store-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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