🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@creooxag/cx-converter

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@creooxag/cx-converter

The conversion is done by: ```js const { gltf, metaData } = await ifc2gltf(data); ``` which extracts gltf together with metaData. ## Importing of wasm ### Using local wasm file By default, wasm file from npm-package is used. For particular wasm file path,

latest
npmnpm
Version
0.0.15-alpha
Version published
Weekly downloads
361
42.69%
Maintainers
0
Weekly downloads
 
Created
Source

Code explanation

Conversion

The conversion is done by:

const { gltf, metaData } = await ifc2gltf(data);

which extracts gltf together with metaData.

Importing of wasm

Using local wasm file

By default, wasm file from npm-package is used. For particular wasm file path, use the syntax prvided with following example:

const { gltf, metaData } = await ifc2gltf(dataString, "./../dist/");

Using remote wasm file

You can import wasm file dynamically from CDN, using the following syntax:

const { gltf, metaData } = await ifc2gltf(dataString, "remote");

FAQs

Package last updated on 27 Feb 2025

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