@grundstein/file-store
v0.0.1
Published
NOT YET BENCHMARKED OR IN PRODUCTION! @grundstein/file-store. pipes the contents of a directory of files into a @grundstein/mem-store.
Readme
@grundstein/file-store
WIP. NOT IN PRODUCTION YET!
reads a directory of files, then initializes a @grundstein/memstore with that data and returns it.
@grundstein/mem-store
minimal, memory only, key -> value store for nodejs.
installation
npm i @grundstein/file-storeusage
import fileStore from '@grundstein/file-store'
const dir = 'public'
const store = fileStore(dir)
store.get('file.txt') // 'contents and metadata of public/file.txt'this library gets used by @grundstein/server to serve static files.
changelog
v0.0.2 - unreleased
v0.0.1
first release
