![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.
npm install flak --save
const Flak = require('flak');
const emitter = new Flak();
// Adds listener for the event
emitter.on('myEvent1', (param1, param2)=>{
console.log(param1, param2);
});
// Adds a one time listener function for the event
emitter.once('myEvent2', (param1, param2)=>{
console.log(param1, param2);
});
// Adds listener for the event that can be call just 4 time
emitter.on('myEvent3', (param1, param2)=>{
console.log(param1, param2);
}, {
maxCalls: 4
});
// Adds the listener function to the beginning of the listeners array for the event named myEvent1
emitter.on('myEvent1', (param1, param2)=>{
console.log(param1, param2);
}, {
prepend: true
});
// Catch all events
emitter.onCatchAll(params=>{
console.log(params);
});
// Fire event
emitter.fire('myEvent1', true, {a: 1});
// Fire async method
emitter.fireAsync('myEvent2', true, {a: 1});
// Remove all listeners for myEvent1
emitter.off('myEvent1');
// Returning data using "fireTheFirst"
emitter.on('myEvent', (param1, param2)=>{
return param1 + '-' + param2;
});
console.log('foo-bar' === emitter.fireTheFirst('myEvent', 'foo', 'bar')) //=> true;
// Suspend event
emitter.suspendEvent('myEvent');
emitter.fire('myEvent'); // will not be fired!
// Resume event
emitter.resumeEvent('myEvent');
<script src="node_modules/flak/dist/flak.min.js"></script>
<script src="https://unpkg.com/flak/dist/flak.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/flak/dist/flak.min.js"></script>
You can view the changelog here
Flak is open-sourced software licensed under the MIT license
[1.0.0] - 2017-11-23
suspendEvent
resumeEvent
suspendEvents
resumeEvents
isSuspended
FAQs
Powerfull universal JavaScript event emitter for browser and server.
The npm package flak receives a total of 0 weekly downloads. As such, flak popularity was classified as not popular.
We found that flak demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.