
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.
array-object-alt
Advanced tools
Use an object where an array is required (See examples)
npm install array-object-alt
npm run test
Converts an object into an array while preserving keys in 'keys' property
Converts an array into an object. If the object was converted into array using above method, it will read keys from the keys property
Patches a function so it can be called (always async) with first argument as object instead of an array
Useful to call the function (sync) with 1st arguments as object instead of array
Useful to call the function (async) with 1st arguments as object instead of array
Converts an object into an array while preserving keys in 'keys' property
Kind: global function
Returns: Array
| Param | Type |
|---|---|
| o | Object |
Converts an array into an object. If the object was converted into array using above method, it will read keys from the keys property
Kind: global function
Returns: Object
| Param | Type |
|---|---|
| a | Array |
Patches a function so it can be called (always async) with first argument as object instead of an array
Kind: global function
| Param | Type | Default | Description |
|---|---|---|---|
| [key] | string | "$o" | The patch name |
Useful to call the function (sync) with 1st arguments as object instead of array
Kind: global function
Returns: Promise
| Param | Type |
|---|---|
| cb | Callback |
| ...args | any |
Useful to call the function (async) with 1st arguments as object instead of array
Kind: global function
Returns: Result
| Param | Type |
|---|---|
| cb | Callback |
| ...args | any |
👤 Praveen Ranjan Keshri
Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.
Give a ⭐️ if this project helped you!
Copyright © 2021 Praveen Ranjan Keshri.
This project is ISC licensed.
This README was generated with ❤️ by readme-md-generator
FAQs
Use an object where an array is required (See examples)
We found that array-object-alt 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.