summaryrefslogtreecommitdiffstats
path: root/scripts/process-data.js
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2014-05-24 16:00:43 +0200
committerMathias Bynens <mathias@qiwi.be>2014-05-24 16:00:43 +0200
commit31bc08bb9af3a0d51c5326ec5e00fa4fef875d05 (patch)
tree950bdf0891f3f8bf7bd7986b6437d4d4730ce471 /scripts/process-data.js
parentf397e8ffa59e45763dd88cab0f7468ef29ecfdcc (diff)
downloadhe-31bc08bb9af3a0d51c5326ec5e00fa4fef875d05.zip
he-31bc08bb9af3a0d51c5326ec5e00fa4fef875d05.tar.gz
he-31bc08bb9af3a0d51c5326ec5e00fa4fef875d05.tar.bz2
Clean up scripts
Diffstat (limited to 'scripts/process-data.js')
-rw-r--r--scripts/process-data.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/scripts/process-data.js b/scripts/process-data.js
index 3ad9a3c..8189178 100644
--- a/scripts/process-data.js
+++ b/scripts/process-data.js
@@ -1,14 +1,9 @@
var fs = require('fs');
var jsesc = require('jsesc');
var _ = require('lodash');
-require('string.fromcodepoint');
-var readJSON = function(file) {
- return JSON.parse(fs.readFileSync(file, 'utf8'));
-};
-
-// http://www.whatwg.org/specs/web-apps/current-work/multipage/entities.json
-var data = readJSON('data/entities.json');
+// http://www.whatwg.org/specs/web-apps/current-work/entities.json
+var data = require('../data/entities.json');
var encodeMap = {};
var encodeMultipleSymbols = [];