New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

web-e57

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web-e57

Provides capability to convert E57 file into XYZ, LAZ, XML, JSON formats

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

E57 File Conversion for JavaScript

Provides capability to convert E57 file into XYZ, LAZ, XML, JSON formats.

Usage in node.js application

import { promises as fs } from "fs";
import { parse } from "path";
import { convertE57 } from "web-e57";

async function processE57(filePath) {
   const data = await fs.readFile(filePath);
   const dataArray = new Uint8Array(data);
   const convertedData = convertE57(dataArray, 'XYZ');
   // Write converted data to a file on disk
   const { dir, name } = parse(filePath);
   const outputFilename = `${dir}/${name}.xyz`;
   await fs.writeFile(outputFilename, convertedData);
}

Usage in web application

import { convertE57 } from "web-e57";

async function processE57(file) {
   const data = await file.arrayBuffer();
   const dataArray = new Uint8Array(data);
   const convertedData = convertE57(dataArray, 'XYZ');
   const blob = new Blob([convertedData]);
   // Do something with blob
}

Keywords

e57

FAQs

Package last updated on 04 May 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