open-index/open-npm huggingface dataset:
npm package: @johefe/perfsee-bundle-analyzer
Description: Bundle analyzer by perfsee
Latest version: 1.14.5-alpha.0

# `@johefe/perfsee-bundle-analyzer`

## Usage

```ts
import { StatsParser } from '@johefe/perfsee-bundle-analyzer'

// or const parser = StatsParser.FromStatsFile(webpackStatsFile)
const parser = StatsParser.FromStats(webpackStats, outputPath)

const { result, content } = await parser.parse()

// reference
console.log(result)

// module references tree
console.log(content)
```

## Credits

The module tree part is forked from [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)
npm package: @johefe/perfsee-jsonr
Description: JSON with references
Latest version: 1.14.0-alpha.0

## jsonr

JSON with references

# Example

```
import JSONR from '@johefe/perfsee-jsonr'

const jsonrStr = JSONR.stringify({ hello: "world" })
const obj = JSONR.parse(jsonrStr)
```

# Format

```JS
const obj = { a: { hello: 'world', foooobar: 1 }, b: [] as any[] }
obj.b.push(obj.a, obj.a, obj.a)

const jsonrStr = JSONR.stringify(obj)

jsonrStr ->

{
  "a": {
    "hello": "world",
    "foooobar"$0: 1
  },
  "b": [
    {
      "hello"$1: "world"$2,
      $0: 1
    },
    {
      $1:$2,
      $0: 1
    },
    {
      $1:$2,
      $0: 1
    }
  ]
}
```