Added package, used lint
This commit is contained in:
parent
28aaf3234d
commit
e51095d9ba
6
index.js
6
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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user