
Product
Introducing Reachability for PHP
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.
array-envelop
Advanced tools
This wraps an array-like object to an array so that every array method can be utilized. Try yourself via RunKit.
import { envelop } from "array-envelop";
const object = {
0: "maya",
1: "eve",
length: 2
};
const enveloped = envelop(object);
enveloped.indexOf("eve"); // returns 1
/*
* Anything that mutates the array will throw, including the followings:
*
* enveloped.length = "peanut";
* enveloped.push("peanut");
* enveloped.pop();
* enveloped.shift();
*/
Array.from?Array.from copies everything while array-envelop keeps refering to the original object.
object[2] = "aya";
object.length = 3;
enveloped.join(" "); // "maya eve aya"
const liveNodeList = document.getElementsByTagtName("div");
envelop(liveNodeList); // a live array that changes as the document structure does
FAQs
Wraps an array-like object to an array
The npm package array-envelop receives a total of 6 weekly downloads. As such, array-envelop popularity was classified as not popular.
We found that array-envelop 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.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.