Last active
July 9, 2018 14:08
-
-
Save alfredwesterveld/a9b75e8cabb9c117b51bf4fc3084ca85 to your computer and use it in GitHub Desktop.
generate svg filesize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 6MB => 6291456 | |
const fs = require('fs'); | |
fs.copyFileSync('svg.svg', 'long.svg'); | |
fs.appendFileSync('long.svg', `<!--${'-'.repeat(6 * 1024 * 1024 - 96)}-->`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment