Socket
Socket
Sign inDemoInstall

remark-usage

Package Overview
Dependencies
Maintainers
13
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 6.1.0 to 6.1.1

11

index.js

@@ -12,2 +12,3 @@ 'use strict'

var markdown = require('remark-parse')
var resolveFrom = require('resolve-from')

@@ -149,6 +150,3 @@ module.exports = usage

main = options.main
main = main
? require.resolve(resolve(cwd, main))
: resolve(cwd, pack.main || 'index.js')
main = resolve(cwd, options.main || pack.main || 'index.js')

@@ -280,3 +278,6 @@ example = options.example

function replace($0, $1, $2, $3) {
var filepath = resolve(options.example, '../', unquote($2))
var filepath = resolveFrom.silent(
path.dirname(options.example),
unquote($2)
)
var quote

@@ -283,0 +284,0 @@

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

@@ -38,2 +38,3 @@ "license": "MIT",

"remark-preset-wooorm": "^4.0.0",
"resolve-from": "^4.0.0",
"tape": "^4.0.0",

@@ -40,0 +41,0 @@ "xo": "^0.23.0"

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