Comparing version 9.0.0 to 10.0.0
13
index.js
@@ -1,7 +0,10 @@ | ||
'use strict'; | ||
'use strict' | ||
var unified = require('unified'); | ||
var parse = require('remark-parse'); | ||
var stringify = require('remark-stringify'); | ||
var unified = require('unified') | ||
var parse = require('remark-parse') | ||
var stringify = require('remark-stringify') | ||
module.exports = unified().use(parse).use(stringify).freeze(); | ||
module.exports = unified() | ||
.use(parse) | ||
.use(stringify) | ||
.freeze() |
{ | ||
"name": "remark", | ||
"version": "9.0.0", | ||
"version": "10.0.0", | ||
"description": "Markdown processor powered by plugins", | ||
@@ -16,7 +16,2 @@ "license": "MIT", | ||
], | ||
"dependencies": { | ||
"remark-parse": "^5.0.0", | ||
"remark-stringify": "^5.0.0", | ||
"unified": "^6.0.0" | ||
}, | ||
"homepage": "http://remark.js.org", | ||
@@ -32,4 +27,14 @@ "repository": "https://github.com/remarkjs/remark/tree/master/packages/remark", | ||
], | ||
"scripts": {}, | ||
"dependencies": { | ||
"remark-parse": "^6.0.0", | ||
"remark-stringify": "^6.0.0", | ||
"unified": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"tape": "^4.9.1" | ||
}, | ||
"scripts": { | ||
"test": "tape test.js" | ||
}, | ||
"xo": false | ||
} |
@@ -1,2 +0,2 @@ | ||
# remark [![Build Status][build-badge]][build-status] [![Coverage Status][coverage-badge]][coverage-status] [![Chat][chat-badge]][chat] | ||
# remark [![Travis][build-badge]][build-status] [![Coverage][coverage-badge]][coverage-status] [![Downloads][dl-badge]][dl] [![Size][size-badge]][size] [![Chat][chat-badge]][chat] | ||
@@ -29,6 +29,6 @@ The [`remark`][remark] processor is a markdown processor powered by | ||
```js | ||
var remark = require('remark'); | ||
var recommended = require('remark-preset-lint-recommended'); | ||
var html = require('remark-html'); | ||
var report = require('vfile-reporter'); | ||
var remark = require('remark') | ||
var recommended = require('remark-preset-lint-recommended') | ||
var html = require('remark-html') | ||
var report = require('vfile-reporter') | ||
@@ -38,6 +38,6 @@ remark() | ||
.use(html) | ||
.process('## Hello world!', function (err, file) { | ||
console.error(report(err || file)); | ||
console.log(String(file)); | ||
}); | ||
.process('## Hello world!', function(err, file) { | ||
console.error(report(err || file)) | ||
console.log(String(file)) | ||
}) | ||
``` | ||
@@ -63,10 +63,10 @@ | ||
```js | ||
var remark = require('remark'); | ||
var remark = require('remark') | ||
remark() | ||
.data('settings', {commonmark: true, emphasis: '*', strong: '*'}) | ||
.process('_Emphasis_ and __importance__', function (err, file) { | ||
if (err) throw err; | ||
console.log(String(file)); | ||
}); | ||
.process('_Emphasis_ and __importance__', function(err, file) { | ||
if (err) throw err | ||
console.log(String(file)) | ||
}) | ||
``` | ||
@@ -86,3 +86,3 @@ | ||
```js | ||
var remark = require('remark'); | ||
var remark = require('remark') | ||
@@ -93,6 +93,6 @@ remark() | ||
}) | ||
.process('_Emphasis_ and __importance__', function (err, file) { | ||
if (err) throw err; | ||
console.log(String(file)); | ||
}); | ||
.process('_Emphasis_ and __importance__', function(err, file) { | ||
if (err) throw err | ||
console.log(String(file)) | ||
}) | ||
``` | ||
@@ -112,3 +112,3 @@ | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark.svg | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark/master.svg | ||
@@ -121,2 +121,10 @@ [build-status]: https://travis-ci.org/remarkjs/remark | ||
[dl-badge]: https://img.shields.io/npm/dm/remark.svg | ||
[dl]: https://www.npmjs.com/package/remark | ||
[size-badge]: https://img.shields.io/bundlephobia/minzip/remark.svg | ||
[size]: https://bundlephobia.com/result?p=remark | ||
[chat-badge]: https://img.shields.io/gitter/room/remarkjs/Lobby.svg | ||
@@ -126,3 +134,3 @@ | ||
[license]: https://github.com/remarkjs/remark/blob/master/LICENSE | ||
[license]: https://github.com/remarkjs/remark/blob/master/license | ||
@@ -129,0 +137,0 @@ [author]: http://wooorm.com |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4577
8
150
1
+ Added@types/node@22.5.5(transitive)
+ Added@types/unist@2.0.113.0.3(transitive)
+ Added@types/vfile@3.0.2(transitive)
+ Added@types/vfile-message@2.0.0(transitive)
+ Addedis-buffer@2.0.5(transitive)
+ Addedremark-parse@6.0.3(transitive)
+ Addedremark-stringify@6.0.4(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedunified@7.1.0(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)
+ Addedvfile@3.0.1(transitive)
+ Addedvfile-message@4.0.2(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedremark-parse@5.0.0(transitive)
- Removedremark-stringify@5.0.0(transitive)
- Removedunified@6.2.0(transitive)
- Removedvfile@2.3.0(transitive)
Updatedremark-parse@^6.0.0
Updatedremark-stringify@^6.0.0
Updatedunified@^7.0.0