/ index.js
index.js
1  const fs = require('fs');
2  const path = require('path');
3  const PACKAGE_PATH = path.dirname(require.resolve(path.join('china-dictatorship', 'package.json')));
4  const README_PATH = path.join(PACKAGE_PATH, 'README.html');
5  
6  function get_data() {
7    return fs.readFileSync(README_PATH, 'utf8');
8  }
9  exports.get_data = get_data;