forked from sheetjs/sheetjs
10 lines
231 B
JavaScript
10 lines
231 B
JavaScript
|
/* based on the `coarse` project README */
|
||
|
const fs = require('fs');
|
||
|
const coarse = require('coarse');
|
||
|
|
||
|
const svg = fs.readFileSync(process.argv[2]);
|
||
|
const roughened = coarse(svg);
|
||
|
|
||
|
fs.writeFileSync(process.argv[3], roughened);
|
||
|
|