Socket
Socket
Sign inDemoInstall

remark-cli

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-cli - npm Package Compare versions

Comparing version 9.0.0 to 10.0.0

license

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

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