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

@loaders.gl/loader-utils

Package Overview
Dependencies
Maintainers
9
Versions
322
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@loaders.gl/loader-utils

Framework-independent loaders for 3D graphics formats

  • 4.0.0-alpha.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
307K
decreased by-8.44%
Maintainers
9
Weekly downloads
 
Created

What is @loaders.gl/loader-utils?

@loaders.gl/loader-utils is a utility library that provides a set of tools and helper functions for working with data loaders. It is part of the larger loaders.gl framework, which is designed to handle various data formats and provide efficient data loading and processing capabilities.

What are @loaders.gl/loader-utils's main functionalities?

Data Conversion

Converts various data types to ArrayBuffer. This is useful for standardizing data formats before processing.

const { toArrayBuffer } = require('@loaders.gl/loader-utils');
const buffer = toArrayBuffer(new Uint8Array([1, 2, 3]));
console.log(buffer);

Data Parsing

Parses JSON strings into JavaScript objects. This is useful for handling JSON data received from various sources.

const { parseJSON } = require('@loaders.gl/loader-utils');
const jsonData = parseJSON('{"key": "value"}');
console.log(jsonData);

Data Encoding

Encodes data into Base64 format. This is useful for encoding binary data into a text format that can be easily transmitted.

const { encodeBase64 } = require('@loaders.gl/loader-utils');
const base64String = encodeBase64(new Uint8Array([1, 2, 3]));
console.log(base64String);

Other packages similar to @loaders.gl/loader-utils

Keywords

FAQs

Package last updated on 13 Jul 2023

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