UNPKG

auto-parse

Version:

Automatically convert any value to its best matching JavaScript type. Supports numbers, booleans, objects, arrays, BigInt, Symbol, comma-separated numbers, prefix stripping, allowed type enforcement and a plugin API.

16 lines (13 loc) 275 B
const esbuild = require('esbuild') esbuild.buildSync({ entryPoints: ['index.js'], bundle: true, format: 'cjs', outfile: 'dist/auto-parse.js' }) esbuild.buildSync({ entryPoints: ['index.js'], bundle: true, format: 'esm', outfile: 'dist/auto-parse.esm.js' })