rawjsonbuilder
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

RawJSONBuilder

📦 Minecraft Raw JSON text builder.

npm version

📖 Documentation

Install 📦

npm i rawjsonbuilder

Usage 🔧

import { text, TextComponent } from "rawjsonbuilder"; // ESM
// OR
const { text, TextComponent } = require("rawjsonbuilder"); // CommonJS

text("Hello World!", "black")
    .toRawString(); // §0Hello World!

const builder = new TextComponent()
    .setText("Hello World!")
    .setBold()
    .addSpace()
    .addExtra(
        text("Nice to meet you!", "red")
    )
    .toRawString(); // §lHello World! §cNice to meet you!

Readme

Keywords

Package Sidebar

Install

npm i rawjsonbuilder

Weekly Downloads

38

Version

2.1.1

License

MIT

Unpacked Size

50 kB

Total Files

22

Last publish

Collaborators

  • mrzillagold