mirror of https://gitee.com/bigwinds/arangodb
12 lines
300 B
JavaScript
Executable File
12 lines
300 B
JavaScript
Executable File
/*!
|
|
* read-json-sync | MIT (c) Shinnosuke Watanabe
|
|
* https://github.com/shinnn/read-json-sync
|
|
*/
|
|
'use strict';
|
|
|
|
var fs = require('graceful-fs');
|
|
|
|
module.exports = function readJsonSync(filePath, options) {
|
|
return JSON.parse(String(fs.readFileSync(filePath, options)).replace(/^\ufeff/g, ''));
|
|
};
|