trilium/bin/create-anonymization-script.js
2023-10-03 23:14:02 +02:00

7 lines
276 B
JavaScript
Executable file

#!/usr/bin/env node
const anonymizationService = require('../src/services/anonymization');
const fs = require('fs');
const path = require('path');
fs.writeFileSync(path.resolve(__dirname, 'tpl', 'anonymize-database.sql'), anonymizationService.getFullAnonymizationScript());