![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.
@bettercorp/service-base
Advanced tools
This base allows for a distributed service platform.
Create ts/js files according to your new plugin:
src/<plugin-name>/plugin.ts
lib/<plugin-name>/plugin.js
src/logging/plugin.ts
exports.default = {
info: (pluginName: string, ...data: any[]) => typeof data === 'string'
? console.log(`[${pluginName.toUpperCase()}] ${data}`)
: console.log(pluginName.toUpperCase(), data),
error: (pluginName: string, ...data: any[]) => typeof data === 'string'
? console.error(`[${pluginName.toUpperCase()}] ${data}`)
: console.error(pluginName.toUpperCase(), data),
warn: (pluginName: string, ...data: any[]) => typeof data === 'string'
? console.warn(`[${pluginName.toUpperCase()}] ${data}`)
: console.warn(pluginName.toUpperCase(), data)
}
src/<plugin-name>/plugin.ts
module.exports.init = (features: PluginFeature) => {
// This function is called on plugin initialization
features.onEvent('<event-name>', '<plugin-name>', (...args: any[]) => {
if (args.length === 0) return;
let objectOfInfo: any = args[0];
// *objectOfInfo* is the data passed in to your event handler
// If the event returns data
features.emitEvent(`<plugin-name>-<event-name>-result-${objectOfInfo.resultKey}`, '<result data object or string>');
// If the event returns data but errors out
features.emitEvent(`<plugin-name>-<event-name>-error-${objectOfInfo.resultKey}`, '<error message or string>');
});
}
@bettercorp/service-base-plugin-<plugin>
import ServiceBase from '@bettercorp/service-base';
const SB = new ServiceBase();
SB.init();
SB.run();
FAQs
[![Docker Image Size](https://img.shields.io/docker/image-size/betterweb/service-base/latest)](https://hub.docker.com/r/betterweb/service-base) [![Docker Pulls](https://img.shields.io/docker/pulls/betterweb/service-base)](https://hub.docker.com/r/betterw
The npm package @bettercorp/service-base receives a total of 450 weekly downloads. As such, @bettercorp/service-base popularity was classified as not popular.
We found that @bettercorp/service-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.