Advertisement
Guest User

Untitled

a guest
Jul 30th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. (function (file) {
  2. var fs = require('fs'),
  3. _ = require('underscore');
  4.  
  5. if (fs.existsSync(file)) {
  6. _.mixin({
  7. deepExtend: require('underscore-deep-extend')(_)
  8. });
  9.  
  10. _.deepExtend(elixir.config, JSON.parse(fs.readFileSync(file, 'utf8')));
  11. }
  12. })('config.json');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement