trilium/bin/create-anonymization-script.js

8 lines
279 B
JavaScript
Raw Normal View History

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