think-store-file

store content use file

Usage no npm install needed!

<script type="module">
  import thinkStoreFile from 'https://cdn.skypack.dev/think-store-file';
</script>

README

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