Skip to content

samswen/to-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-string

enable converting object to string by removing circular reference

how to install

npm install @samwen/to-string --save

how to use

const to_string = require('@samwen/to-string');

const b = { name: 'b' };
const a = { name: 'a', reference_to: b};
b['reference_to'] = a;

// a has circular reference
const s = to_string(a);

About

enable converting object to string by removing circular reference

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published