Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mailto-link

bendrucker48kMIT2.0.0TypeScript support: included

Generate a mailto protocol link

mailto, protocol, mail, link

readme

mailto-link tests

Generate a mailto protocol link

Install

$ npm install --save mailto-link

Usage

var mailtoLink = require('mailto-link')

mailtoLink({to: 'bvdrucker@gmail', subject: 'Nice mailto lib'})
//=> mailto:bvdrucker@gmail.com?subject=Nice%20mailto%20lib

API

options

Required
Type: object

to / cc / bcc

Type: string / array[string]

List of emails to send to.

subject

Type: string

The email subject.

body

Type: string

The email body.

License

MIT © Ben Drucker