Cat main file

This commit is contained in:
Richard Littauer 2016-05-13 12:22:50 -04:00
parent fa458be910
commit ac5c335e00

View File

@ -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!')
}
}) })
)