{"_id":"yacl","_rev":"3782852","name":"yacl","description":"load config from a given environment","dist-tags":{"latest":"0.0.8"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"time":{"modified":"2025-05-20T01:54:10.000Z","created":"2014-04-07T14:07:29.425Z","0.0.8":"2014-12-12T11:04:03.101Z","0.0.7":"2014-10-09T09:40:24.404Z","0.0.6":"2014-08-12T13:47:31.097Z","0.0.5":"2014-06-24T16:06:14.447Z","0.0.4":"2014-05-21T10:55:39.839Z","0.0.3":"2014-05-21T10:55:07.395Z","0.0.2":"2014-04-07T14:23:30.469Z","0.0.1":"2014-04-07T14:07:29.425Z"},"users":{},"author":{"name":"iGLOO studio"},"repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"versions":{"0.0.8":{"name":"yacl","version":"0.0.8","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.9.0","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.8.0","extend":"^2.0.0"},"devDependencies":{"grunt":"^0.4.5","matchdep":"^0.3.0","grunt-contrib-copy":"^0.6.0","grunt-contrib-clean":"^0.6.0","grunt-contrib-coffee":"^0.12.0","grunt-coffeelint":"0.0.13","grunt-mocha-test":"^0.12.1","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"gitHead":"b01803bbf0108e7f30c99f0e9596d12d6793001c","_id":"yacl@0.0.8","_shasum":"036dbe3c1557b958b993e6ec2bf778c94bf29bd3","_from":".","_npmVersion":"2.0.0","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"dist":{"shasum":"036dbe3c1557b958b993e6ec2bf778c94bf29bd3","size":3157,"noattachment":false,"key":"/yacl/-/yacl-0.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.8.tgz"},"_cnpmcore_publish_time":"2021-12-23T20:40:49.284Z","publish_time":1418382243101,"_cnpm_publish_time":1418382243101},"0.0.7":{"name":"yacl","version":"0.0.7","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.9.0","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.8.0","extend":"^2.0.0"},"devDependencies":{"grunt":"^0.4.5","matchdep":"^0.3.0","grunt-contrib-copy":"^0.6.0","grunt-contrib-clean":"^0.6.0","grunt-contrib-coffee":"^0.12.0","grunt-coffeelint":"0.0.13","grunt-mocha-test":"^0.12.1","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"gitHead":"ab01343fbe05b61fae9a0de40ff718dc4e942d34","_id":"yacl@0.0.7","_shasum":"15221d92391ac042af56730e4b4054aab3b8ae2e","_from":".","_npmVersion":"1.4.24","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"dist":{"shasum":"15221d92391ac042af56730e4b4054aab3b8ae2e","size":3035,"noattachment":false,"key":"/yacl/-/yacl-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.7.tgz"},"_cnpmcore_publish_time":"2021-12-23T20:40:48.415Z","publish_time":1412847624404,"_cnpm_publish_time":1412847624404},"0.0.6":{"name":"yacl","version":"0.0.6","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.6.2","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.7.1","extend":"^1.2.1"},"devDependencies":{"grunt":"^0.4.4","matchdep":"^0.3.0","grunt-contrib-copy":"^0.5.0","grunt-contrib-clean":"^0.5.0","grunt-contrib-coffee":"^0.10.1","grunt-coffeelint":"0.0.8","grunt-mocha-test":"^0.10.0","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"gitHead":"265313b86e8110dc405a38389407ebffe0cf7e66","_id":"yacl@0.0.6","_shasum":"1f07f643813d0f2fb0f746e04f9e44003c4fe4f3","_from":".","_npmVersion":"1.4.18","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"dist":{"shasum":"1f07f643813d0f2fb0f746e04f9e44003c4fe4f3","size":2935,"noattachment":false,"key":"/yacl/-/yacl-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.6.tgz"},"_cnpmcore_publish_time":"2021-12-23T20:40:47.548Z","publish_time":1407851251097,"_cnpm_publish_time":1407851251097},"0.0.5":{"name":"yacl","version":"0.0.5","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.6.2","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.7.1","extend":"^1.2.1"},"devDependencies":{"grunt":"^0.4.4","matchdep":"^0.3.0","grunt-contrib-copy":"^0.5.0","grunt-contrib-clean":"^0.5.0","grunt-contrib-coffee":"^0.10.1","grunt-coffeelint":"0.0.8","grunt-mocha-test":"^0.10.0","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"_id":"yacl@0.0.5","dist":{"shasum":"14105b95ad5d7950ffb55442248430a5cda49888","size":2941,"noattachment":false,"key":"/yacl/-/yacl-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.5.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T20:40:46.655Z","publish_time":1403625974447,"_cnpm_publish_time":1403625974447},"0.0.4":{"name":"yacl","version":"0.0.4","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.6.2","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.7.1","extend":"^1.2.1"},"devDependencies":{"grunt":"^0.4.4","matchdep":"^0.3.0","grunt-contrib-copy":"^0.5.0","grunt-contrib-clean":"^0.5.0","grunt-contrib-coffee":"^0.10.1","grunt-coffeelint":"0.0.8","grunt-mocha-test":"^0.10.0","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"_id":"yacl@0.0.4","dist":{"shasum":"4d9ced9af45e2efa39cf37656e08de062f7747c8","size":2936,"noattachment":false,"key":"/yacl/-/yacl-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.4.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T20:40:45.774Z","publish_time":1400669739839,"_cnpm_publish_time":1400669739839},"0.0.3":{"name":"yacl","version":"0.0.3","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.6.2","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.7.1","extend":"^1.2.1"},"devDependencies":{"grunt":"^0.4.4","matchdep":"^0.3.0","grunt-contrib-copy":"^0.5.0","grunt-contrib-clean":"^0.5.0","grunt-contrib-coffee":"^0.10.1","grunt-coffeelint":"0.0.8","grunt-mocha-test":"^0.10.0","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"_id":"yacl@0.0.3","dist":{"shasum":"c355c654348a9fb5bf4b06023e6086e2ed9f22b1","size":2936,"noattachment":false,"key":"/yacl/-/yacl-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.3.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T20:40:44.848Z","publish_time":1400669707395,"_cnpm_publish_time":1400669707395},"0.0.2":{"name":"yacl","version":"0.0.2","main":"lib/config","repository":{"type":"git","url":"https://github.com/iGLOO-be/yacl.git"},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"dependencies":{"async":"^0.6.2","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.7.1","extend":"^1.2.1"},"devDependencies":{"grunt":"^0.4.4","matchdep":"^0.3.0","grunt-contrib-copy":"^0.5.0","grunt-contrib-clean":"^0.5.0","grunt-contrib-coffee":"^0.10.1","grunt-coffeelint":"0.0.8","grunt-mocha-test":"^0.10.0","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"_id":"yacl@0.0.2","dist":{"shasum":"b17fb6c39bd69ec849ffead763e43ac845e94d0b","size":2900,"noattachment":false,"key":"/yacl/-/yacl-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T20:40:43.968Z","publish_time":1396880610469,"_cnpm_publish_time":1396880610469},"0.0.1":{"name":"yacl","version":"0.0.1","main":"lib/config","dependencies":{"async":"^0.6.2","lodash":"^2.4.1","config-templator":"0.0.7","coffee-script":"^1.7.1","extend":"^1.2.1"},"devDependencies":{"grunt":"^0.4.4","matchdep":"^0.3.0","grunt-contrib-copy":"^0.5.0","grunt-contrib-clean":"^0.5.0","grunt-contrib-coffee":"^0.10.1","grunt-coffeelint":"0.0.8","grunt-mocha-test":"^0.10.0","grunt-contrib-jshint":"^0.10.0","grunt-release":"^0.7.0","blanket":"^1.1.6","expect.js":"^0.3.1","travis-cov":"^0.2.5"},"description":"load config from a given environment","directories":{"example":"examples","test":"test"},"scripts":{"test":"grunt test"},"author":{"name":"iGLOO studio"},"license":"ISC","keywords":["config","configuration","loader","development","production","default","yet","another"],"config":{"blanket":{"pattern":"lib/**/*.js","data-cover-never":"node_modules"},"travis-cov":{"threshold":70}},"_id":"yacl@0.0.1","dist":{"shasum":"e3495bc205e88064519e8d286a0692fa4a5a04de","size":2839,"noattachment":false,"key":"/yacl/-/yacl-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/yacl/download/yacl-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"loicmahieu","email":"mahieuloic@gmail.com"},"maintainers":[{"name":"loicmahieu","email":"mahieuloic@gmail.com"},{"name":"tagkiller","email":"baddich5@gmail.com"}],"_cnpmcore_publish_time":"2021-12-23T20:40:43.113Z","publish_time":1396879649425,"_cnpm_publish_time":1396879649425}},"readme":"# YACL [![Build Status](https://travis-ci.org/iGLOO-be/yacl.svg?branch=master)](https://travis-ci.org/iGLOO-be/yacl)\nYet Another Config Loader.\nA loader of config given an environment.\nBy default it will load the 'default' configuration and by specifying the environment the default configuration can have some property overriden by the environment configuration.\n\nIt uses the [config-templator][config-templator] by [LoicMahieu][loicMahieu].\n\n# Getting Started\n\n```\nnpm install --save yacl\n```\n\n## Usage :\nSupposing that you have a directory that contains configurations files in './config'.\n\n```js\nvar config = new ConfigLoader();\n\nconfig.addDir( __dirname + '/config');\nconfig.setEnv('development');\n\nconfig.start(function (err) {\n    if(err)\n      throw new Error(err)\n    console.log(config.toJSON());\n});\n```\n\n## Methods :\n\n- *constructor*: `new ConfigLoader([config[, lookup]])`\n  - `config` : default config that have priority to every config files\n  - `lookup` : default: ['default', 'user-default', '{env}', 'user-{env}'] ( `{env}` is replaced by current environment )\n\n\n- *addDir*: add a directory that contains the environment files\n- *setEnv*: it takes a string as argument and set it as its environment by default the environment is 'default' or 'development' if it exists.\n- *start*: merge the configuration file into the config object.\n- *toJSON*: get the config into JSON format.\n- *applyConfig*: it takes an object as arguments and apply it on the current configuration.\n\n# License\nLicensed under ISC.\nCopyright (C) 2014 [iGLOO / Woobie S.P.R.L.][igloo] [(Loïc Mahieu loic@igloo.be)][loicMahieu]\n```\nCopyright (C) 2014 iGLOO / Woobie S.P.R.L. (Loïc Mahieu loic@igloo.be)\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION\nOF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN\nCONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n```\n\n [igloo]: http://www.igloo.be\n [loicMahieu]: https://github.com/LoicMahieu\n [config-templator]: https://github.com/LoicMahieu/config-templator","_attachments":{},"homepage":"https://github.com/iGLOO-be/yacl","bugs":{"url":"https://github.com/iGLOO-be/yacl/issues"},"license":"ISC"}