 njs_util                  = require 'util'
 rpr                       = njs_util.inspect
 CND                       = require './main'
-@flatten                  = require 'lodash.flattendeep'
+PATH                      = require 'path'
+@flatten                  = ( x, depth = Infinity ) -> x.flat depth
 
 #-----------------------------------------------------------------------------------------------------------
 @equals = ( P... ) -> ( require './jkroso-equals' ) P...

#-----------------------------------------------------------------------------------------------------------
@jr     = JSON.stringify
@assign = Object.assign

#-----------------------------------------------------------------------------------------------------------
@copy = ( P... ) ->

@deep_copy = ( P... ) -> ( require './universal-copy' ) P...

#-----------------------------------------------------------------------------------------------------------
number_formatter = new Intl.NumberFormat 'en-US'
@format_number = ( x ) -> number_formatter.format x

#-----------------------------------------------------------------------------------------------------------
@escape_regex = ( text ) ->
