New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dont-use-here-link

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dont-use-here-link

The simple library for preventing using of `here` as link in markdown files

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-76.92%
Maintainers
2
Weekly downloads
 
Created
Source

The simple library for preventing using of here as link in markdown files

Install

$ npm install --save-dev dont-use-here-link
# or
$ yarn add dont-use-here-link --dev

Usage

You can use these library from a cli or from import statement.

Import like usage

import { verifyLinks } from 'dont-use-here-link'
// or
const { verifyLinks } = require('dont-use-here-link')

const hereLinks = async () => await verifyLinks('./blog') // can be folder or file

console.log(hereLinks().catch(() => {}))
// Checking all markdown files to ensure [here] not used for links…
//   Checking file: blog\text.md…
//   Checking file: blog\text2.md…
// [here] links were found.
// In file: blog/text.md
//  - Line 2: 'Follow along with the [Google Chromium blog](http://blog.chromium.org) to learn about features as new versions ship and again, you can check the version of Chromium that Electron uses [here](https://electronjs.org/#electron-versions).'
// Look for the source of these markdown and looks to not use [here] as link'.

CLI like usage

npx dont-use-here-link <folder or file>

Example:

npx dont-use-here-link ./blog

> Checking all markdown files to ensure [here] not used for links…
>  Checking file: blog\text.md…
>  Checking file: blog\text2.md…
> [here] links were found.
> In file: blog/text.md
>  - Line 2: 'Follow along with the [Google Chromium blog](http://blog.chromium.org) to learn about features as new versions ship and again, you can check the version of Chromium that Electron uses [here](https://electronjs.org/#electron-versions).'
> Look for the source of these markdown and looks to not use [here] as link'.

API

verifyLinks(globRoot[, options])

Arguments:

  • globRoot String (required)
  • options Object (optional)
    • searchWord String - Word what's need to search. Defaults [here]

License

MIT

Keywords

FAQs

Package last updated on 27 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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