1.1.2 • Published 6 years ago
string-from-object v1.1.2
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.