esbuild-plugin-hjson

0.0.1 • Public • Published

esbuild-plugin-hjson

An esbuild plugin to handle human json files.

Install

npm install esbuild-plugin-hjson -D
yarn add esbuild-plugin-hjson -D

Use

esbuild.config.json

const esbuild = require('esbuild')
const hjson = require('../index')

esbuild.build({
  bundle: true,
  entryPoints: ['main.js'],
  outfile: 'out.js',
  plugins: [
    hjson()
  ]
}).catch(() => process.exit(1))

and in your js...

const someJSON = require('example.hjson')

On build this will then be processed into machine-readable standard JSON.

Readme

Keywords

none

Package Sidebar

Install

npm i esbuild-plugin-hjson

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

4.14 kB

Total Files

7

Last publish

Collaborators

  • childishgiant