JSPM

@gltf-transform/extensions

0.9.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41305
  • Score
    100M100P100Q159667F
  • License MIT

Adds extension support to @gltf-transform/core

Package Exports

  • @gltf-transform/extensions

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gltf-transform/extensions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@gltf-transform/extensions

Latest NPM release Minzipped size License

Part of the glTF-Transform project.

Installation

Install:

npm install --save @gltf-transform/extensions

Import:

// ES6
import { WebIO } from '@gltf-transform/core';
import { KHRONOS_EXTENSIONS } from '@gltf-transform/extensions';

// CommonJS
const { WebIO } = require('@gltf-transform/core');
const { KHRONOS_EXTENSIONS } = require('@gltf-transform/extensions');

// Register.
const io = new WebIO().registerExtensions(KHRONOS_EXTENSIONS);
const document = await io.read('/model.glb');

API

Full documentation, and a list of supported extensions, in Extensions.