remark-cli
Advanced tools
Comparing version 9.0.0 to 10.0.0
32
cli.js
#!/usr/bin/env node | ||
'use strict' | ||
import {createRequire} from 'node:module' | ||
import {args} from 'unified-args' | ||
import {remark} from 'remark' | ||
var start = require('unified-args') | ||
var extensions = require('markdown-extensions') | ||
var processor = require('remark') | ||
var proc = require('remark/package.json') | ||
var cli = require('./package.json') | ||
const require = createRequire(import.meta.url) | ||
start({ | ||
processor: processor, | ||
const proc = require('remark/package.json') | ||
const cli = require('./package.json') | ||
// To do: enable `markdown-extensions` once it supports ESM. | ||
const extensions = [ | ||
'md', | ||
'markdown', | ||
'mdown', | ||
'mkdn', | ||
'mkd', | ||
'mdwn', | ||
'mkdown', | ||
'ron' | ||
] | ||
args({ | ||
// @ts-expect-error: fine. | ||
processor: remark, | ||
name: proc.name, | ||
@@ -23,3 +37,3 @@ description: cli.description, | ||
ignoreName: '.' + proc.name + 'ignore', | ||
extensions: extensions | ||
extensions | ||
}) |
{ | ||
"name": "remark-cli", | ||
"version": "9.0.0", | ||
"description": "CLI to process Markdown with remark", | ||
"version": "10.0.0", | ||
"description": "CLI to process markdown with remark", | ||
"license": "MIT", | ||
@@ -25,2 +25,4 @@ "keywords": [ | ||
], | ||
"type": "module", | ||
"main": "index.js", | ||
"bin": { | ||
@@ -33,10 +35,16 @@ "remark": "cli.js" | ||
"dependencies": { | ||
"markdown-extensions": "^1.1.0", | ||
"remark": "^13.0.0", | ||
"unified-args": "^8.0.0" | ||
"remark": "^14.0.0", | ||
"unified-args": "^9.0.0" | ||
}, | ||
"scripts": { | ||
"test": "tape test.js" | ||
"build": "rimraf \"*.d.ts\" && tsc && type-coverage", | ||
"test": "node --conditions development test.js" | ||
}, | ||
"xo": false | ||
"xo": false, | ||
"typeCoverage": { | ||
"atLeast": 100, | ||
"detail": true, | ||
"strict": true, | ||
"ignoreCatch": true | ||
} | ||
} |
@@ -14,3 +14,3 @@ # remark-cli | ||
* Loads [`remark-` plugins][plugins] | ||
* Searches for [Markdown extensions][markdown-extensions] | ||
* Searches for [markdown extensions][markdown-extensions] | ||
* Ignores paths found in [`.remarkignore` files][ignore-file] | ||
@@ -35,4 +35,4 @@ * Loads configuration from [`.remarkrc`, `.remarkrc.js` files][config-file] | ||
# Lint Markdown files in the current directory | ||
# according to the Markdown style guide. | ||
# Lint markdown files in the current directory | ||
# according to the markdown style guide. | ||
$ remark . --use preset-lint-markdown-style-guide | ||
@@ -49,3 +49,3 @@ ``` | ||
CLI to process Markdown with remark | ||
CLI to process markdown with remark | ||
@@ -94,3 +94,3 @@ Options: | ||
As Markdown is sometimes used for HTML, and improper use of HTML can open you up | ||
As markdown is sometimes used for HTML, and improper use of HTML can open you up | ||
to a [cross-site scripting (XSS)][xss] attack, use of remark can also be unsafe. | ||
@@ -170,5 +170,5 @@ When going to HTML, use remark in combination with the [**rehype**][rehype] | ||
[build-badge]: https://img.shields.io/travis/remarkjs/remark.svg | ||
[build-badge]: https://github.com/remarkjs/remark/workflows/main/badge.svg | ||
[build]: https://travis-ci.org/remarkjs/remark | ||
[build]: https://github.com/remarkjs/remark/actions | ||
@@ -175,0 +175,0 @@ [coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark.svg |
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
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
10944
2
4
34
Yes
+ Added@types/concat-stream@2.0.3(transitive)
+ Added@types/debug@4.1.12(transitive)
+ Added@types/is-empty@1.2.3(transitive)
+ Added@types/js-yaml@4.0.9(transitive)
+ Added@types/ms@0.7.34(transitive)
+ Added@types/node@17.0.45(transitive)
+ Added@types/supports-color@8.1.3(transitive)
+ Added@types/text-table@0.2.5(transitive)
+ Addedansi-regex@6.1.0(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbail@2.0.2(transitive)
+ Addedbuiltins@4.1.0(transitive)
+ Addedcamelcase@6.3.0(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedcharacter-entities@2.0.2(transitive)
+ Addeddecode-named-character-reference@1.0.2(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddiff@5.2.0(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@9.2.2(transitive)
+ Addedfault@2.0.1(transitive)
+ Addedimport-meta-resolve@1.1.1(transitive)
+ Addedis-plain-obj@4.1.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedkleur@4.1.5(transitive)
+ Addedlines-and-columns@2.0.4(transitive)
+ Addedload-plugin@4.0.1(transitive)
+ Addedlongest-streak@3.1.0(transitive)
+ Addedmdast-util-from-markdown@1.3.1(transitive)
+ Addedmdast-util-phrasing@3.0.1(transitive)
+ Addedmdast-util-to-markdown@1.5.0(transitive)
+ Addedmdast-util-to-string@3.2.0(transitive)
+ Addedmicromark@3.2.0(transitive)
+ Addedmicromark-core-commonmark@1.1.0(transitive)
+ Addedmicromark-factory-destination@1.1.0(transitive)
+ Addedmicromark-factory-label@1.1.0(transitive)
+ Addedmicromark-factory-space@1.1.0(transitive)
+ Addedmicromark-factory-title@1.1.0(transitive)
+ Addedmicromark-factory-whitespace@1.1.0(transitive)
+ Addedmicromark-util-character@1.2.0(transitive)
+ Addedmicromark-util-chunked@1.1.0(transitive)
+ Addedmicromark-util-classify-character@1.1.0(transitive)
+ Addedmicromark-util-combine-extensions@1.1.0(transitive)
+ Addedmicromark-util-decode-numeric-character-reference@1.1.0(transitive)
+ Addedmicromark-util-decode-string@1.1.0(transitive)
+ Addedmicromark-util-encode@1.1.0(transitive)
+ Addedmicromark-util-html-tag-name@1.2.0(transitive)
+ Addedmicromark-util-normalize-identifier@1.1.0(transitive)
+ Addedmicromark-util-resolve-all@1.1.0(transitive)
+ Addedmicromark-util-sanitize-uri@1.2.0(transitive)
+ Addedmicromark-util-subtokenize@1.1.0(transitive)
+ Addedmicromark-util-symbol@1.1.0(transitive)
+ Addedmicromark-util-types@1.1.0(transitive)
+ Addedmri@1.2.0(transitive)
+ Addedparse-json@6.0.2(transitive)
+ Addedremark@14.0.3(transitive)
+ Addedremark-parse@10.0.2(transitive)
+ Addedremark-stringify@10.0.3(transitive)
+ Addedsade@1.8.1(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedstring-width@5.1.2(transitive)
+ Addedstrip-ansi@7.1.0(transitive)
+ Addedsupports-color@9.4.0(transitive)
+ Addedto-vfile@7.2.4(transitive)
+ Addedtrough@2.2.0(transitive)
+ Addedunified@10.1.2(transitive)
+ Addedunified-args@9.0.2(transitive)
+ Addedunified-engine@9.1.1(transitive)
+ Addedunist-util-inspect@7.0.2(transitive)
+ Addedunist-util-is@5.2.1(transitive)
+ Addedunist-util-stringify-position@3.0.3(transitive)
+ Addedunist-util-visit@4.1.2(transitive)
+ Addedunist-util-visit-parents@5.1.3(transitive)
+ Addeduvu@0.5.6(transitive)
+ Addedvfile@5.3.7(transitive)
+ Addedvfile-message@3.1.4(transitive)
+ Addedvfile-reporter@7.0.5(transitive)
+ Addedvfile-sort@3.0.1(transitive)
+ Addedvfile-statistics@2.0.1(transitive)
+ Addedzwitch@2.0.4(transitive)
- Removedmarkdown-extensions@^1.1.0
- Removedansi-regex@5.0.1(transitive)
- Removedargparse@1.0.10(transitive)
- Removedbail@1.0.5(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedchalk@3.0.0(transitive)
- Removedcharacter-entities@1.2.4(transitive)
- Removedcharacter-entities-legacy@1.1.4(transitive)
- Removedcharacter-reference-invalid@1.1.4(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedesprima@4.0.1(transitive)
- Removedfault@1.0.4(transitive)
- Removedfigures@3.2.0(transitive)
- Removedis-alphabetical@1.0.4(transitive)
- Removedis-alphanumerical@1.0.4(transitive)
- Removedis-decimal@1.0.4(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-hexadecimal@1.0.4(transitive)
- Removedis-plain-obj@2.1.0(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedload-plugin@3.0.0(transitive)
- Removedlongest-streak@2.0.4(transitive)
- Removedmarkdown-extensions@1.1.1(transitive)
- Removedmdast-util-from-markdown@0.8.5(transitive)
- Removedmdast-util-to-markdown@0.6.5(transitive)
- Removedmdast-util-to-string@2.0.0(transitive)
- Removedmicromark@2.11.4(transitive)
- Removedparse-entities@2.0.0(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedremark@13.0.0(transitive)
- Removedremark-parse@9.0.0(transitive)
- Removedremark-stringify@9.0.1(transitive)
- Removedrepeat-string@1.6.1(transitive)
- Removedresolve-from@5.0.0(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedsupports-color@6.1.0(transitive)
- Removedto-vfile@6.1.0(transitive)
- Removedtrough@1.0.5(transitive)
- Removedunified@9.2.2(transitive)
- Removedunified-args@8.1.0(transitive)
- Removedunified-engine@8.2.0(transitive)
- Removedunist-util-inspect@5.0.1(transitive)
- Removedunist-util-stringify-position@2.0.3(transitive)
- Removedvfile@4.2.1(transitive)
- Removedvfile-message@2.0.4(transitive)
- Removedvfile-reporter@6.0.2(transitive)
- Removedvfile-sort@2.2.2(transitive)
- Removedvfile-statistics@1.1.4(transitive)
- Removedzwitch@1.0.5(transitive)
Updatedremark@^14.0.0
Updatedunified-args@^9.0.0