
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
mini-utils
Advanced tools
A mini script of utilities for Node and the Browser.
This DOES extend the prototype of some things.
2.8kb minified and gzipped.
npm install mini-utils
bower install mini-util
var __ = require('mini-utils'); // Double underscore
Add this to your HTML <head>:
<script src="/path/to/your/bower_components/mini-util/mini-utils.min.js"></script>
If you want to use the script in a WebWorker, in the WebWorker you must:
importScripts('/path/to/your/bower_components/mini-util/mini-utils.min.js');
Use the __ variable to access mini-utils. Example:
__.isNode(); // Again, double underscore
inherits. The first parameter is the class that inherits, and the second parameter is the superclass.EventEmitter. Full Node API is supported (including deprecated functions) (Node API link: https://nodejs.org/api/events.html).import. Returns the script's exports. WARNING: Uses synchronous version of XMLHttpRequest, which may hang the browser, strongly advised to use the async version above!postMessage. Otherwise, it emits the event specified in the first parameter, and optionally passes the rest of the arguments as extra data. Returns true if the event has listeners, false otherwise.onmessage when given 'message' as the event. When the event specified in the first parameter is fired, the callback in the second parameter is called.onmessage when given 'message' as the event (except only fires once). When the event specified in the first parameter is fired, the callback in the second parameter is called. After the callback is done, it is removed from the listeners for that event.postMessage. Otherwise, it emits the event specified in the first parameter, and optionally passes the rest of the arguments as extra data. Returns true if the event has listeners, false otherwise.onmessage when given 'message' as the event. When the event specified in the first parameter is fired, the callback in the second parameter is called.onmessage when given 'message' as the event (except only fires once). When the event specified in the first parameter is fired, the callback in the second parameter is called. After the callback is done, it is removed from the listeners for that event.postMessage. Otherwise, it emits the event specified in the first parameter, and optionally passes the rest of the arguments as extra data. Returns true if the event has listeners, false otherwise.onmessage when given 'message' as the event. When the event specified in the first parameter is fired, the callback in the second parameter is called.onmessage when given 'message' as the event (except only fires once). When the event specified in the first parameter is fired, the callback in the second parameter is called. After the callback is done, it is removed from the listeners for that event.| First parameter | Second parameter | Return Value |
|---|---|---|
| String - Property name | undefined | String - Property value |
| String - Property name | String - Property Value | this |
| Object - Object of properties | undefined | this |
| Array - Array of property names | undefined | Array - Array of property values |
| Array - Array of property names | Array - Array of property values | this |
None yet.
FAQs
A mini script of utilities for Node and the Browser.
The npm package mini-utils receives a total of 24 weekly downloads. As such, mini-utils popularity was classified as not popular.
We found that mini-utils 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.