hjson-ts
v1.0.1
Published
A human-friendly JSON format with comments, relaxed syntax and better error handling. TypeScript implementation.
Downloads
6
Maintainers
Readme
Hjson-TS, the Human JSON
A configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.
TypeScript Implementation
This is a TypeScript implementation of the Hjson format, based on the original hjson-js project. It provides full type safety and modern ES module support.
Install from npm
npm install hjson-tsUsage
import Hjson from 'hjson-ts';
// Parse Hjson
const data = Hjson.parse(hjsonText);
// Convert to Hjson
const hjsonText = Hjson.stringify(data);