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

remark-usage

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-usage - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

8

history.md

@@ -1,5 +0,11 @@

<!--mdast setext-->
<!--remark setext-->
<!--lint disable no-multiple-toplevel-headings-->
2.0.1 / 2015-12-25
==================
* Refactor to replace mocha with tape ([a8d7a48](https://github.com/wooorm/remark-usage/commit/a8d7a48))
* Replace internal dependency of mdast > remark ([27cb95a](https://github.com/wooorm/remark-usage/commit/27cb95a))
2.0.0 / 2015-12-24

@@ -6,0 +12,0 @@ ==================

21

index.js

@@ -11,2 +11,4 @@ /**

/* eslint-env node */
/*

@@ -18,3 +20,3 @@ * Dependencies.

var path = require('path');
var mdast = require('mdast');
var remark = require('remark');
var uncached = require('require-uncached');

@@ -61,3 +63,3 @@ var heading = require('mdast-util-heading-range');

* @param {string} value - Content to process.
* @return {string}
* @return {string} - Preprocessed `value`.
*/

@@ -81,3 +83,4 @@ function preprocess(value) {

* @param {string} source - Scripts source.
* @return {Array.<Object>}
* @param {Object} options - Configuration.
* @return {Array.<Object>} - List of tokens.
*/

@@ -137,3 +140,3 @@ function script(source, options) {

* @param {Object} info - Code node.
* @return {Node}
* @return {Node} - mdast node.
*/

@@ -153,6 +156,6 @@ function log(info) {

* @param {string} value - Value to parse.
* @return {Array.<Node>}
* @return {Array.<Node>} - List of mdast nodes.
*/
function parse(value) {
return mdast.parse(value, {
return remark.parse(value, {
'position': false

@@ -167,3 +170,4 @@ }).children;

* @param {Object} logs - List of logs.
* @return {Array.<Node>}
* @param {Object} options - Configuration.
* @return {Array.<Node>} - List of mdast nodes.
*/

@@ -253,3 +257,3 @@ function postprocess(value, logs, options) {

* @param {Object} options - Configuration.
* @return {function(node)}
* @return {function(node)} - Bound heading-range callback.
*/

@@ -263,2 +267,3 @@ function runFactory(options) {

* @param {Array.<Node>} nodes - Content.
* @param {Node} end - Ending heading.
*/

@@ -265,0 +270,0 @@ return function (start, nodes, end) {

{
"name": "remark-usage",
"version": "2.0.0",
"version": "2.0.1",
"description": "Add a usage example to your README",

@@ -19,3 +19,3 @@ "license": "MIT",

"cept": "^1.0.0",
"mdast": "^3.0.0-alpha.5",
"remark": "^3.0.0",
"mdast-util-heading-range": "^1.0.0",

@@ -28,24 +28,22 @@ "require-uncached": "^1.0.2",

"eslint": "^1.0.0",
"istanbul": "^0.3.0",
"istanbul": "^0.4.0",
"jscs": "^2.0.0",
"jscs-jsdoc": "^1.0.0",
"mdast-github": "^2.0.0-alpha.1",
"mdast-lint": "^2.0.0-alpha.1",
"mdast-slug": "^2.0.0",
"mdast-comment-config": "^2.0.0-alpha.1",
"mdast-validate-links": "^1.0.0",
"mocha": "^2.0.0"
"remark-github": "^2.0.0",
"remark-lint": "^2.0.0",
"remark-slug": "^3.0.0",
"remark-comment-config": "^2.0.0",
"remark-validate-links": "^2.0.0",
"tape": "^4.0.0"
},
"scripts": {
"test-api": "mocha --check-leaks test/index.js",
"test-coverage": "istanbul cover _mocha -- test/index.js",
"test-travis": "npm run test-coverage",
"test": "npm run test-api",
"build-md": "remark . --quiet",
"build": "npm run build-md",
"lint-api": "eslint .",
"lint-style": "jscs --reporter inline .",
"lint": "npm run lint-api && npm run lint-style",
"make": "npm run lint && npm run test-coverage",
"build-md": "mdast . --quiet",
"build": "npm run build-md"
"test-api": "node test/index.js",
"test-coverage": "istanbul cover test/index.js",
"test": "npm run build && npm run lint && npm run test-coverage"
}
}

@@ -6,6 +6,6 @@ # remark-usage [![Build Status](https://img.shields.io/travis/wooorm/remark-usage.svg)](https://travis-ci.org/wooorm/remark-usage) [![Coverage Status](https://img.shields.io/codecov/c/github/wooorm/remark-usage.svg)](https://codecov.io/github/wooorm/remark-usage)

> :warning: **mdast is currently being renamed to remark** :warning:
>
>
> This means all plug-ins and relating projects change too, causing many
> changes across the ecosystem. Expect the dust to settle in roughly a day.
>
>
> See this project at the previous stable commit

@@ -12,0 +12,0 @@ > [c4a51d1](https://github.com/wooorm/remark-github/commit/c4a51d1).

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