Package Exports
- cert127
- cert127/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cert127) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
cert127
cert127 / There is no place like 127.0.0.1
Small utility to generate 🔒 trusted self-signed certificates for local development.
Prerequisites
This package requires mkcert to be installed on your system. Please follow the installation instructions for your platform.
Installation
# With Yarn
yarn add cert127
# or with npm
npm i cert127Usage
import cert127 from 'cert127';
const { key, cert } = await cert127();✨Roadmap
- Make it a class, so we offer more ways to retrieve the cert
- Add a check to see if
mkcertis installed and if not, install it - Make sure that
mkcertwas initialized:mkcert -install - Add a check to see if the certificate is already created and ask the user if they want to overwrite it
- Add more options for customizations (e.g. hosts, expiration time etc.)
- Add a way to revoke the certificate
- Add a way to check if the certificate is valid
- Allow creating multiple certificates
- Add tests
- Add CI/CD
- Add ESLint and Prettier
There is no place like 127.0.0.1 🏠