1.1.2 • Published 6 years ago

string-from-object v1.1.2

Weekly downloads
25
License
AGPL-3.0-or-later
Repository
github
Last release
6 years ago

string-from-object

neatly formatted, indentation based presentation of js object, handles circular structures, depth levels, + logs with color

for usage, see ./module/__tests__(./module/tests) npm i string-from-object

import {log} from 'string-from-object'
log({some: {object: ['or', 'value']}})

import strFromObj from 'string-from-object'
console.log(strFromObj(..., {
	depth: 1, indentation: '\t', colors: false,
	filter: ({key})=> key!=='name',
	nameExtractor: obj=> obj.name,
}))

Contribute

Feel free to fork and send PR's :)

Copyright © Leonard Pauli, 2017-2018

Licence: GNU Affero General Public License v3.0 or later. For commersial / closed-source / custom licencing needs, please contact us.

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago