Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@loaders.gl/loader-utils
Advanced tools
Framework-independent loaders for 3D graphics formats
@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.
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);
The 'buffer' package provides a way of handling binary data in Node.js. It offers similar functionalities for data conversion and manipulation, but it is more focused on low-level operations compared to the higher-level utilities provided by @loaders.gl/loader-utils.
The 'json5' package allows for parsing and stringifying JSON with more features than the standard JSON object. It offers similar JSON parsing capabilities but with additional features like comments and trailing commas, which are not supported by @loaders.gl/loader-utils.
The 'base64-js' package provides utilities for encoding and decoding Base64 data. It offers similar Base64 encoding functionalities but is more specialized and does not include the broader range of utilities found in @loaders.gl/loader-utils.
This module contains shared utilities for loaders.gl, a collection of framework-independent 3D and geospatial loaders (parsers).
For documentation please visit the website.
v3.0.0-alpha.11
FAQs
Framework-independent loaders for 3D graphics formats
The npm package @loaders.gl/loader-utils receives a total of 274,073 weekly downloads. As such, @loaders.gl/loader-utils popularity was classified as popular.
We found that @loaders.gl/loader-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.