Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rehype-stringify

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rehype-stringify - npm Package Compare versions

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc