@needle-tools/prc
v0.1.0
Published
Typed ESM package for PRC conversion through the Needle WebAssembly runtime
Readme
@needle-tools/prc
Typed ESM package for the prc-convert WebAssembly tool.
This package exposes a minimal high-level API for:
PRC -> GLBPRC -> OBJ/MTLGLB -> PRC- arbitrary converter runs with typed input/output handling
The npm package is @needle-tools/prc.
The runtime API is createPrcConverter().
Install
npm install @needle-tools/prcUsage
import { createPrcConverter } from '@needle-tools/prc';
const converter = await createPrcConverter();
const { output } = converter.convert({
input: prcBytes,
inputFileName: 'input.prc',
outputFileName: 'output.glb'
});Build Inputs
The publishable contents live in dist/ and are produced from:
native/build-wasm/prc-convert.jsnative/build-wasm/prc-convert.wasmpackage/src/index.jspackage/src/index.d.ts
To rebuild them locally:
npm run build:wasm
npm run build:packagePublished Files
dist/index.jsdist/index.d.tsdist/prc-convert.jsdist/prc-convert.wasm
See CHANGELOG.md for package-level release notes.
