keymirror-nested
relate with https://github.com/STRML/keyMirror and make it nestable
usage
keyMirrorNested = require('keymirror-nested'); var constants = keyMirrorNested(); where constants will look like: USER:
You also can custom glue and prefix:
obj = ; var glue = '+';var prefix = 'FOO'; var constants = keyMirrorNested(obj, glue, prefix); where constants will look like: USER: