npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

mkcert-prebuilt

1.0.0 • Public • Published

mkcert-prebuilt

npm version Build Status codecov

An npm package to install a mkcert prebuilt binary

Installation

Use npm.

npm install mkcert-prebuilt

As this package makes use of install npm script in order to download a binary for the current platform, ignore-scripts npm-config cannot be enabled while executing the command above.

API

require('mkcert-prebuilt')

Type: string

An absolute path to the installed mkcert binary, which can be used with child_process functions.

const {spawn} = require('child_process');
const mkcert = require('mkcert-prebuilt');
 
spawn(mkcert, ['-install']);

CLI

Once this package is installed to the project directory, users can execute mkcert command inside npm scripts of the project.

"create-cert""mkcert example.org localhost 127.0.0.1 ::1"
$ npm run-script create-cert

License

ISC License © 2019 Shinnosuke Watanabe

mkcert

BSD 3-Clause "New" or "Revised" License © 2018 The mkcert Authors

install

npm i mkcert-prebuilt

Downloadsweekly downloads

137

version

1.0.0

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability