Skip to content

NOT YET BENCHMARKED OR IN PRODUCTION! @grundstein/file-store. pipes the contents of a directory of files into a @grundstein/mem-store.

License

Notifications You must be signed in to change notification settings

grundstein/file-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@grundstein/file-store

WIP. NOT IN PRODUCTION YET!

reads a directory of files, then initializes a @grundstein/memstore with that data and returns it.

minimal, memory only, key -> value store for nodejs.

installation

npm i @grundstein/file-store

usage

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.

About

NOT YET BENCHMARKED OR IN PRODUCTION! @grundstein/file-store. pipes the contents of a directory of files into a @grundstein/mem-store.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published