--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
8
node_modules/cardinal/lib/highlightFileSync.js
generated
vendored
Normal file
8
node_modules/cardinal/lib/highlightFileSync.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
var fs = require('fs')
|
||||
, highlight = require('./highlight');
|
||||
|
||||
module.exports = function highlightFileSync (fullPath, opts) {
|
||||
var code = fs.readFileSync(fullPath, 'utf-8');
|
||||
opts = opts || { };
|
||||
return highlight(code, opts);
|
||||
};
|
||||
Loading…
Reference in a new issue