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

err-link

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

err-link

Build err.sh links

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build err.sh links

Generate short links to error messages stored in the /errors folder of your repositories. Read the blogpost for more.

Install

$ npm install err-link

Usage

const err = require('err-link')

err('zeit', 'now-cli', 'env-no-secret')
//=> 'https://err.sh/zeit/now-cli/env-no-secret'

const instance = err.instance('zeit', 'now-cli')

instance('env-no-secret')
//=> 'https://err.sh/zeit/now-cli/env-no-secret'

API

err(user, repo, code)

user

Type: string

The GitHub user or organization

repo

Type: string

The GitHub repository name

code

Type: string

The filename for the error message

err.instance(user[, repo])

Creates an instance of the err function with the given preset values

user

Type: string

The GitHub user or organization

const err = require('err-link').instance('zeit')

err('now-cli', 'env-no-secret')
//=> 'https://err.sh/zeit/now-cli/env-no-secret'
repo

Type: string

The GitHub repository name

const err = require('err-link').instance('zeit', 'now-cli')

err('env-no-secret')
//=> 'https://err.sh/zeit/now-cli/env-no-secret'

Examples

  • err-sh - Microservice that forwards you to error messages

License

MIT © Avi Goldman

FAQs

Package last updated on 25 Dec 2017

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