Skip to content

zhuyifang/json-file-db

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Json database based on file system

Support electronjs,nodejs,nwjs

Features:

  1. Small: 140 lines of file, 2.63kb
  2. Simple: only rely on FS
  3. Easy to manage, based on the file system, the data is very intuitive.

db: folder

table: folder

row:json format file

基于文件系统的json 数据库

特点:

  1. 小:文件140行,2.63kb
  2. 简单:仅依赖FS
  3. 便于管理,基于文件系统,数据非常直观。

db:文件夹

table:文件夹

row:json格式文件

Use:

const db = new JsonDb('/Users/xxx/Downloads/112233',23)
db.table('table1').add('a2',{a:2})

db.table('table1').find() // return []
db.table('table1').find(['a1']) // return  []

image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published