
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
ndarray-pack
Advanced tools
Converts an array-of-arrays (ie numeric.js array) into a packed ndarray.
//First create a numeric.js style array:
var x = [[1, 0, 1],
[0, 1, 1],
[0, 0, 1],
[1, 0, 0]]
var y = require("ndarray-pack")(x)
npm install ndarray-pack
require("ndarray-pack")(nested_array[,out])Converts the nested array into a packed ndarray.
nested_array is an array-of-arrays (ie a numeric.js array)out is an optional ndarray that gets the result of unpacking arrayReturns A packed ndarray representation of the nested arrays.
(c) 2013 Mikola Lysenko. MIT License
FAQs
Packs an array-of-arrays into a single ndarray
The npm package ndarray-pack receives a total of 355,564 weekly downloads. As such, ndarray-pack popularity was classified as popular.
We found that ndarray-pack demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.