rehype-stringify
Advanced tools
Comparing version 3.0.0 to 4.0.0
14
index.js
@@ -1,16 +0,16 @@ | ||
'use strict'; | ||
'use strict' | ||
var xtend = require('xtend'); | ||
var toHTML = require('hast-util-to-html'); | ||
var xtend = require('xtend') | ||
var toHTML = require('hast-util-to-html') | ||
module.exports = stringify; | ||
module.exports = stringify | ||
function stringify(config) { | ||
var settings = xtend(config, this.data('settings')); | ||
var settings = xtend(config, this.data('settings')) | ||
this.Compiler = compiler; | ||
this.Compiler = compiler | ||
function compiler(tree) { | ||
return toHTML(tree, settings); | ||
return toHTML(tree, settings) | ||
} | ||
} |
{ | ||
"name": "rehype-stringify", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "HTML compiler for rehype", | ||
@@ -14,5 +14,5 @@ "license": "MIT", | ||
], | ||
"homepage": "https://github.com/wooorm/rehype", | ||
"repository": "https://github.com/wooorm/rehype/tree/master/packages/rehype-stringify", | ||
"bugs": "https://github.com/wooorm/rehype/issues", | ||
"homepage": "https://github.com/rehypejs/rehype", | ||
"repository": "https://github.com/rehypejs/rehype/tree/master/packages/rehype-stringify", | ||
"bugs": "https://github.com/rehypejs/rehype/issues", | ||
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)", | ||
@@ -22,5 +22,2 @@ "contributors": [ | ||
], | ||
"engines": { | ||
"node": ">=0.11.0" | ||
}, | ||
"files": [ | ||
@@ -30,3 +27,3 @@ "index.js" | ||
"dependencies": { | ||
"hast-util-to-html": "^3.0.0", | ||
"hast-util-to-html": "^4.0.0", | ||
"xtend": "^4.0.1" | ||
@@ -33,0 +30,0 @@ }, |
@@ -18,6 +18,6 @@ # rehype-stringify [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
```js | ||
var unified = require('unified'); | ||
var createStream = require('unified-stream'); | ||
var parse = require('rehype-parse'); | ||
var stringify = require('rehype-stringify'); | ||
var unified = require('unified') | ||
var createStream = require('unified-stream') | ||
var parse = require('rehype-parse') | ||
var stringify = require('rehype-stringify') | ||
@@ -33,6 +33,3 @@ var processor = unified() | ||
process.stdin | ||
.pipe(createStream(processor)) | ||
.pipe(process.stdout); | ||
process.stdin.pipe(createStream(processor)).pipe(process.stdout) | ||
``` | ||
@@ -58,15 +55,15 @@ | ||
[build-badge]: https://img.shields.io/travis/wooorm/rehype.svg | ||
[build-badge]: https://img.shields.io/travis/rehypejs/rehype.svg | ||
[build-status]: https://travis-ci.org/wooorm/rehype | ||
[build-status]: https://travis-ci.org/rehypejs/rehype | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/rehype.svg | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/rehypejs/rehype.svg | ||
[coverage-status]: https://codecov.io/github/wooorm/rehype | ||
[coverage-status]: https://codecov.io/github/rehypejs/rehype | ||
[chat-badge]: https://img.shields.io/gitter/room/wooorm/rehype.svg | ||
[chat-badge]: https://img.shields.io/gitter/room/rehypejs/Lobby.svg | ||
[chat]: https://gitter.im/wooorm/rehype | ||
[chat]: https://gitter.im/rehypejs/Lobby | ||
[license]: https://github.com/wooorm/rehype/blob/master/LICENSE | ||
[license]: https://github.com/rehypejs/rehype/blob/master/LICENSE | ||
@@ -79,3 +76,3 @@ [author]: http://wooorm.com | ||
[processor]: https://github.com/wooorm/rehype | ||
[processor]: https://github.com/rehypejs/rehype | ||
@@ -82,0 +79,0 @@ [compiler]: https://github.com/unifiedjs/unified#processorcompiler |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
2974
80
+ Addedhast-util-to-html@4.0.1(transitive)
+ Addedproperty-information@4.2.0(transitive)
- Removedhast-util-to-html@3.1.0(transitive)
- Removedkebab-case@1.0.2(transitive)
- Removedproperty-information@3.2.0(transitive)
Updatedhast-util-to-html@^4.0.0