Skip to content

Instantly share code, notes, and snippets.

@djdolphin
Last active August 29, 2015 14:15
Show Gist options
  • Save djdolphin/7dc057381e50b12a6986 to your computer and use it in GitHub Desktop.
Save djdolphin/7dc057381e50b12a6986 to your computer and use it in GitHub Desktop.
Unicode Dump
var fs = require('fs'),
i, ch, result = '';
for (i = 1; i <= 0xffff; i++) {
ch = String.fromCharCode(i);
if ([10, 13].indexOf(i) == -1) result += ch;
if (i < 0xffff) result += '\n';
}
fs.writeFile('unicode.txt', result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment