From e51095d9ba34448a6660095c3003726349bde3f4 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Sun, 27 Dec 2015 16:04:44 -0500 Subject: [PATCH] Added package, used lint --- README.md | 2 +- index.js | 6 +++--- package.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 97e31b6..a990c5b 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ ![](https://cdn.rawgit.com/jbenet/contribute-ipfs-gif/master/img/contribute.gif) -> Standardize all IPFS Readme.md's and other markdown files \ No newline at end of file +> Standardize all IPFS Readme.md's and other markdown files diff --git a/index.js b/index.js index aa0e303..5eaaee4 100644 --- a/index.js +++ b/index.js @@ -1,13 +1,13 @@ var mdast = require('mdast') -// var lint = require('mdast-lint') +var lint = require('mdast-lint') var fs = require('graceful-fs') var remarkTitle = require('remark-title') -var doc = '/Users/richard/src/ipfs-readme-standard/README.md' +var doc = './README.md' // TODO Replace README with readme option fs.writeFileSync(doc, mdast().use(remarkTitle, { title: 'IPFS Readme Standard' -}).process( +}, lint).process( fs.readFileSync(doc, 'utf8'), function (err, file, res) { if (err) { console.log(err) diff --git a/package.json b/package.json index a471e26..41960bf 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,10 @@ }, "homepage": "https://github.com/ipfs/ipfs-readme-standard#readme", "dependencies": { - "fs": "0.0.2", "graceful-fs": "^4.1.2", "mdast": "^2.1.0", - "mdast-lint": "^1.1.1" + "mdast-lint": "^1.1.1", + "remark-title": "^1.0.0" }, "devDependencies": { "babel-cli": "^6.3.17"