@spruce-hub/service-proxy
v1.2.0
Published
Universal http proxy utils
Downloads
8
Readme
Service Proxy
Universal http proxy utils
// index.js
import { createServer } from '@spruce-hub/service-proxy'
const config = {
sslDir: './ssl'
path: {
'npm.sprucefe.com': 'http://localhost:4873',
},
}
createServer(config)
> node index.js
> https://npm.sprucefe.com
License
Copyright (c) 2023-present, Spruce FE