UNPKG

forge-svf-utils

Version:

Utilities for working with Autodesk Forge SVF file format.

16 lines (12 loc) 337 B
/* * Example: reading an SVF from local file system * Usage: * node read-svf-filesystem.js <path to svf file> */ const { SvfReader } = require('..'); async function run (filepath) { const reader = await SvfReader.FromFileSystem(filepath); const svf = await reader.read(); console.log(svf); } run(process.argv[2]);