0.0.2 • Published 8 months ago

@ntf/udon v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@ntf/udon

VRChat Udon Compiler in TypeScript or something like that

Installation

Use your favourite package manager, idk

npm install @ntf/udon
yarn add @ntf/udon
pnpm install @ntf/udon

Usage

Importing

This library can be used in CommonJS and ESModule environments

const { ... } = require("@ntf/udon");
import { ... } from "@ntf/udon";

Reading an Assembly

If you have an assembly file, you can read it:

// parse the content of the assembly file (not the file path)
const asm: UdonAssembly = UdonAssembly.parse(contentOfAssembly);

Writing to a file/string

With a UdonAssembly instance you can call toString to generate the content of the udon assembly

// This also makes it work with functions that call `toString`
const content: string = asm.toString();
// for example to write to file in NodeJS
writeFileSync(somePath,content,"utf-8");

License stuff that nobody reads

Just like any Open Source Project this has a License, the MIT License

0.0.2

8 months ago

0.0.1

9 months ago