summaryrefslogtreecommitdiffstats
path: root/scripts/process-data.js
diff options
context:
space:
mode:
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 = [];