Socket
Socket
Sign inDemoInstall

@loaders.gl/loader-utils

Package Overview
Dependencies
Maintainers
0
Versions
310
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


Version published
Weekly downloads
300K
decreased by-6.56%
Maintainers
0
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 01 Jul 2024

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