UNPKG

diamorphosis

Version:

Use - JSON file(s) - .env file for development - ENV vars

66 lines (65 loc) 1.6 kB
module.exports = { nested: { number: 1.3, boolean: true, str: 'string', array: [1, 2, 3], numberArray: [1, 2, 3], booleanArray: [true, false], stringArray: ['a', 'b', 'c'], //should be treated as string array objectArray: [{}, {}], camelCase: 'camelCase', 'with.dot': 'with.dot', regex: new RegExp('some-regex.*', 'gi') }, from: { dot_env: { number: 0.0, boolean: false, str: 'string', array: [1, 2, 3], numberArray: [1, 2, 3], booleanArray: [true, false], stringArray: ['a', 'b', 'c'], //should be treated as string array objectArray: [{}, {}], camelCase: 'camelCase', 'with.dot': 'with.dot', regex: new RegExp('some-regex.*', 'gi') } }, from_env: { number: 0.0, boolean: false, str: 'string', array: [1, 2, 3], arrayTwo: [], numberArray: [1, 2, 3], booleanArray: [true, false], stringArray: ['a', 'b', 'c'], //should be treated as string array objectArray: [{}, {}], camelCase: 'camelCase', nestedCamelCase: { nested: 'nestedCamelCase' }, 'with.dot': 'with.dot', regex: new RegExp('some-regex.*', 'gi') }, from_test_json: { number: 0.0, boolean: true, str: 'string', array: [1, 2, 3], numberArray: [1, 2, 3], booleanArray: [true, false], stringArray: ['a', 'b', 'c'], //should be treated as string array objectArray: [{}, {}], camelCase: 'camelCase', null: null, 'with.dot': 'with.dot', regex: new RegExp('some-regex.*', 'gi') } };