Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vdegenne/make-it-square

Just a module that flatten objects with circular references.
https://github.com/vdegenne/make-it-square

Last synced: about 2 months ago
JSON representation

Just a module that flatten objects with circular references.

Awesome Lists containing this project

README

        

# make-it-square

Just a module that flatten objects with circular references.

## Usage

```javascript
import {makeItSquare} from 'make-it-square';

const o = {};
o.o = o; // <- circular

console.log(JSON.stringify(makeItSquare(o))); // <- no problem
```

## Installation

```bash
yarn add make-it-square
```