![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
datahub-proxy-middleware
Advanced tools
datahub proxy middleware
xudafeng | zivyangll | Chan-Chun | zhangyuheng | zhuyali |
---|
This project follows the git-contributor spec, auto updated at Thu Mar 18 2021 13:45:58 GMT+0800
.
$ npm i datahub-proxy-middleware --save-dev
const datahubMiddleware = require('datahub-proxy-middleware');
const datahubConfig = {
proxy: {
'/api': {
hub: 'project_name',
port: 8080,
hostname: 'localhost',
pathOptions: {
start: true
}
},
},
};
datahubMiddleware(app)(datahubConfig);
notice version 6 has a break change that needs special attention, see more details.
const path = require('path');
const DataHub = require('macaca-datahub');
const datahubMiddleware = require('datahub-proxy-middleware');
// datahub config
// document: https://github.com/macacajs/macaca-datahub#configuration
const datahubConfig = {
port: 5678,
hostname: '127.0.0.1',
pathOptions: {
start: true,
end: false
},
store: path.join(__dirname, '..', 'data'),
proxy: {
'/api': {
hub: 'sample',
},
},
showBoard: true,
};
const defaultDatahub = new DataHub({
port: datahubConfig.port,
});
// devServer field
devServer: {
before: app => {
datahubMiddleware(app)(datahubConfig);
},
after: () => {
defaultDatahub.startServer(datahubConfig).then(() => {
console.log('datahub ready');
});
},
},
showBoard will inject debugger-board
The MIT License (MIT)
FAQs
datahub proxy middleware
The npm package datahub-proxy-middleware receives a total of 1,850 weekly downloads. As such, datahub-proxy-middleware popularity was classified as popular.
We found that datahub-proxy-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.