New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

remark-plugin-refined-github

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-plugin-refined-github

![remark-plugin-refined-github](https://realme-ten.vercel.app/api/v1/banner?colorA=7c2d12&colorB=c2410c&textColor=fb923c&title=remark-plugin-refined-github&subtitle=NEO&desc=Shorten%20github%20url%20like%20refined%20github)

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

remark-plugin-refined-github

npm GitHub

Shorten github repo url in md files like...

refined-github

install

pnpm i remark-plugin-refined-github

usage

import { read } from 'to-vfile'
import { remarkRefinedGithub } from 'remark-plugin-refined-github'
import { remark } from 'remark'
import remarkGfm from 'remark-gfm'


const file = await remark()
  .use(remarkGfm)
  .use(remarkRefinedGithub)
  .process(await read('test/fixtures/input.md'))

options

allowList - current plugin only shorten url listed in allowList

  • type string[]

By default, it equals

'https://github.com',
'https://www.npmjs.com',
'https://raw.githubusercontent.com',
'https://cdn.rawgit.com',
'https://rawgit.com',
'https://togithub.com', // Renovate
'https://github-redirect.dependabot.com', // Dependabot

development

  • Setup - pnpm i
  • Build - pnpm build

built with ❤️ by 😼

FAQs

Package last updated on 25 Sep 2022

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