diff --git a/index.js b/index.js index 5eaaee4..83c15ad 100644 --- a/index.js +++ b/index.js @@ -1,23 +1,6 @@ -var mdast = require('mdast') -var lint = require('mdast-lint') var fs = require('graceful-fs') -var remarkTitle = require('remark-title') -var doc = './README.md' -// TODO Replace README with readme option +var doc = 'README.md' -fs.writeFileSync(doc, mdast().use(remarkTitle, { - title: 'IPFS Readme Standard' -}, 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!') - } - }) -) +fs.readFile(doc, { encoding: 'utf8' }, function(err, data) { + console.log(data) +})