'use strict';

const fs = require('graceful-fs');

module.exports = function readJsonSync(filePath, options) {
  return JSON.parse(String(fs.readFileSync(filePath, options)).replace(/^\ufeff/g, ''));
};

'use strict';

const {readFileSync} = require('graceful-fs');

module.exports = function readJsonSync(filePath, options) {
  return JSON.parse(readFileSync(filePath, options).toString().replace(/^\ufeff/g, ''));
};

use destructuring assignment