Cat main file
This commit is contained in:
parent
fa458be910
commit
ac5c335e00
25
index.js
25
index.js
@ -1,23 +1,6 @@
|
|||||||
var mdast = require('mdast')
|
|
||||||
var lint = require('mdast-lint')
|
|
||||||
var fs = require('graceful-fs')
|
var fs = require('graceful-fs')
|
||||||
var remarkTitle = require('remark-title')
|
var doc = 'README.md'
|
||||||
var doc = './README.md'
|
|
||||||
// TODO Replace README with readme option
|
|
||||||
|
|
||||||
fs.writeFileSync(doc, mdast().use(remarkTitle, {
|
fs.readFile(doc, { encoding: 'utf8' }, function(err, data) {
|
||||||
title: 'IPFS Readme Standard'
|
console.log(data)
|
||||||
}, lint).process(
|
})
|
||||||
fs.readFileSync(doc, 'utf8'), function (err, file, res) {
|
|
||||||
if (err) {
|
|
||||||
console.log(err)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (file.messages[0] != null) {
|
|
||||||
console.log(file.messages)
|
|
||||||
} else {
|
|
||||||
console.log('No errors found!')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user