esbuild-plugin-json-cleaner

0.0.6 • Public • Published

esbuild-plugin-json-cleanup

NPM Version JSR

An esbuild plugin to cleanup JSON files by changing the indentation and removing some top level tags.

import esbuild from "esbuild";
import JSONCleanerPlugin from "esbuild-plugin-json-cleaner";

esbuild.build({
    outdir: "dist",
    plugins: [
        JSONCleanerPlugin({
            src: "src/data.json",
            out: "data.json",
            removeSchema: true,
            removeTags: ["tag1", "tag2"],
            minify: false,
            space: 2
        })
    ]
});

Readme

Keywords

Package Sidebar

Install

npm i esbuild-plugin-json-cleaner

Weekly Downloads

4

Version

0.0.6

License

MIT

Unpacked Size

14.7 kB

Total Files

10

Last publish

Collaborators

  • afcm