nbtify
Version:
A library to read and write NBT files on the web!
10 lines (9 loc) • 340 B
TypeScript
import { NBTData } from "./format.js";
import type { RootTag, RootTagLike } from "./tag.js";
export interface StringifyOptions {
space?: string | number;
}
/**
* Converts an NBT object into an SNBT string.
*/
export declare function stringify<T extends RootTagLike = RootTag>(data: T | NBTData<T>, options?: StringifyOptions): string;