https://github.com/imcuttle/https-wrapper
Wrap http server as https
https://github.com/imcuttle/https-wrapper
Last synced: 5 months ago
JSON representation
Wrap http server as https
- Host: GitHub
- URL: https://github.com/imcuttle/https-wrapper
- Owner: imcuttle
- License: mit
- Created: 2019-08-11T13:30:17.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T23:53:03.000Z (over 3 years ago)
- Last Synced: 2025-09-30T12:55:14.251Z (9 months ago)
- Language: JavaScript
- Size: 1.7 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
README
# https-wrapper
[](https://travis-ci.org/imcuttle/https-wrapper)
[](https://codecov.io/github/imcuttle/https-wrapper?branch=master)
[](https://www.npmjs.com/package/https-wrapper)
[](https://www.npmjs.com/package/https-wrapper)
[](https://prettier.io/)
[](https://conventionalcommits.org)
> Wrap http server as https
Thanks for [`http-proxy`](https://npmsjs.com/http-proxy) and [`create-cert`](https://npmjs.com/create-cert)
## Installation
```bash
npm install https-wrapper
# or use yarn
yarn add https-wrapper
```
## Usage
```javascript
const httpsWrapper = require('https-wrapper')
;(async () => {
const proxyServer = await httpsWrapper({
// extends http-proxy options and create-cert options
})
// More information see https://npmjs.com/http-proxy
proxyServer.listen(8080)
})()
```
### CLI
```
https-wrapper --help
```
## Contributing
- Fork it!
- Create your new branch:
`git checkout -b feature-new` or `git checkout -b fix-which-bug`
- Start your magic work now
- Make sure npm test passes
- Commit your changes:
`git commit -am 'feat: some description (close #123)'` or `git commit -am 'fix: some description (fix #123)'`
- Push to the branch: `git push`
- Submit a pull request :)
## Authors
This library is written and maintained by imcuttle, moyuyc95@gmail.com.
## License
MIT - [imcuttle](https://github.com/imcuttle) 🐟