Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

array-pack-2d

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-pack-2d

Quickly pack a nested 2D array into a typed array – useful for flattening point data into a WebGL-friendly format

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
192
decreased by-28.09%
Maintainers
1
Weekly downloads
 
Created
Source

array-pack-2d experimental

Quickly pack a nested 2D array into a typed array – useful for flattening point data into a WebGL-friendly format.

Usage

array-pack-2d

packed = pack(array, [type])

Takes a nested 2D array and packs it into a flat, packed one. By default this will be a Float32Array, but you can specify a custom type too: this can be a constructor such as Uint8Array, or a dtype string such as "float32" or "uint8".

License

MIT. See LICENSE.md for details.

Keywords

FAQs

Package last updated on 16 Jul 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc