added "DB dump" tool, WIP

This commit is contained in:
zadam
2022-02-10 23:37:25 +01:00
parent df91192b97
commit 6c9fc364a3
7 changed files with 1446 additions and 0 deletions

24
dump-db/package.json Normal file
View File

@@ -0,0 +1,24 @@
{
"name": "dump-db",
"version": "1.0.0",
"description": "Standalone tool to dump contents of Trilium document.db file into a directory tree of notes",
"main": "dump-db.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zadam/trilium.git"
},
"author": "zadam",
"license": "ISC",
"bugs": {
"url": "https://github.com/zadam/trilium/issues"
},
"homepage": "https://github.com/zadam/trilium/dump-db#readme",
"dependencies": {
"better-sqlite3": "7.5.0",
"mime-types": "2.1.34",
"sanitize-filename": "1.6.3"
}
}