mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
port dump-db and other tools to TS
This commit is contained in:
7
bin/create-anonymization-script.ts
Executable file
7
bin/create-anonymization-script.ts
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import anonymizationService from '../src/services/anonymization.js';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
fs.writeFileSync(path.resolve(__dirname, 'tpl', 'anonymize-database.sql'), anonymizationService.getFullAnonymizationScript());
|
||||
Reference in New Issue
Block a user