Socket
Socket
Sign inDemoInstall

dont-use-here-link

Package Overview
Dependencies
77
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
2
decreased by-88.24%
Maintainers
2
Install size
2.20 MB
Created
Weekly downloads
 

Readme

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

Last updated on 27 Jan 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc