at-lodash
improve readibility of your code! 😄 for es6 and coffeescript this is metaprograming used execution context
Usage examples
✏️ es6
when at.config.js writen custom config code located in cwd, auto load that
- at.config.js
const fp = this module{ //here execution context applied at-lodash's feature //(ex : auto load node module, npm module, lodash module) thisdouble = fp}
- index.js
const fp = this //auto load lazily lodasy module!this thisnthis// [9,12,15] //auto load lazily node module! (ex: http)const server = thishttpserver //if you installed 'moment' npm module, auto load that!this// July 10th //auto load at.config.js this// [4,8,12] //create special execution context included string.prototype extended by string modulethis
✏️ coffeescript
- at.config.coffee
= => #here execution context applied at-lodash's feature #(ex : auto load node module, npm module, lodash module) @double = @fpmap fpmultiply2
- index.coffee
require'at-lodash'call @ @ # auto load lazily lodasy module! = @flow fpadd2 fpmultiply3 n@map 123@sum2mul3 # auto load lazily node module! (ex: http) server = @httpcreateServer resendserverlisten 8000 # if you installed 'moment' npm module, auto load that! @moment 2010610# July 10th # auto load at.config.js @double 246 # [4,8,12] //create special execution context included stringprototype extended by string module@string => 'good at-lodash'humanize # 'Good at lodash'
installation
npm install at-lodash
Features
every module loaded lazily in execution context!
- import lodash
- import famouse module
- underscroe.string
- highland
- string
- create special execution context included string.prototype extended by string module
- import module in execution context lazily
- nodejs module
- installed npm module in package.json
- load individual setting in at.config.js