Strip the function definition from str
, and re-indent for pre whitespace.
Highlight the given string of js
.
Lookup file names at the given path
.
Compute a slug from the given str
.
When invoking this function you get a filter function that get the Error.stack as an input, and return a prettify output. (i.e: strip Mocha and internal node functions from stack trace).
Stringify value
. Different behavior depending on type of value:
value
is undefined or null, return '[undefined]'
or '[null]'
, respectively.value
is not an object, function or array, return result of value.toString()
wrapped in double-quotes.value
is an empty object, function, or array, returns '{}'
, '[Function]'
, or '[]'
respectively.value
has properties, call canonicalize} on it, then return result of JSON.stringify()
Takes some variable and asks Object.prototype.toString()
what it thinks it is.
Generate an undefined error with a message warning the user.
Generated using TypeDoc
Return a new Thing that has the keys in sorted order. Recursive.
If the Thing...
'[Circular]'
undefined
, return string'[undefined]'
null
, return valuenull
Array
,Object
, orFunction
, return the value of the Thing'stoString()
methodArray
,Object
, orFunction
, return the result of calling this function again.Array
,Object
, orFunction
, returns'[]'
,'{}'
, or'[Function]'
respectively.https://mochajs.org/api/module-utils.html#.canonicalize