Files
node-metaverse/lib/tools/LLSDSettingsTest.ts
2024-11-25 16:55:55 +00:00

15 lines
402 B
TypeScript

import * as fs from 'fs/promises'
import * as path from 'path';
import { LLSettings } from '../classes/LLSettings';
async function test()
{
const settings = await fs.readFile(path.join(__dirname, '..', '..', '..', 'testing', 'water.bin'));
const set = new LLSettings(settings.toString('utf-8'));
console.log(JSON.stringify(set, null, 4));
}
test().catch((e) =>
{
console.error(e);
});