First Commit
This commit is contained in:
10
html/sternwarte/checkfuehrung/node_modules/cardinal/lib/highlightFileSync.js
generated
vendored
Executable file
10
html/sternwarte/checkfuehrung/node_modules/cardinal/lib/highlightFileSync.js
generated
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
'use strict'
|
||||
|
||||
var fs = require('fs')
|
||||
var highlight = require('./highlight')
|
||||
|
||||
module.exports = function highlightFileSync(fullPath, opts) {
|
||||
var code = fs.readFileSync(fullPath, 'utf-8')
|
||||
opts = opts || { }
|
||||
return highlight(code, opts)
|
||||
}
|
||||
Reference in New Issue
Block a user