0.1.1 • Published 7 years ago

array-to-string-with-indentation v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Array to String with Indentation

Build Status Coverage Status Dependency Status

Converts a multidimensional array to a string with indentation for each array level

Usage

var arrayToString = require( "array-to-string-with-indentation" );

arrayToString( [ "foo", "bar", [ "indent1", "indent2",[ "indentindent1" ], "indent3" ] ] );
/* returns:
foo
bar
    indent1
    indent2
        indentindent1
    indent3
*/