Combine multiple objects into one
Class / function composition library, combines all static and prototype methods
into a single function, constructors are also chained and will be ran in the
order they are received. A
strict option can be set for the library which will
throw an error if property colision is encountered.
This library can be used with both node and the browser, file based methods are
only available in node, such as
var compile = require'compile'
Combines any number of functions passed into a single function
thisbar = 1thisfoo = 2var Purple = compileRed Bluevar purp =purpbar // 1purpfoo // 2
Configure the library, currently only the
strict option is used, which will
throw an error if a property colision is found.
compilesetup strict: true
Combines all exports for a given directory into a single function,
should be the absolute path,
exclude can be an array of filenames or a single
file to exclude from the compile. Pathing can be relative or absolute for
moduleexports = compiledir__dirname __filename
npm install compile
(The MIT License)
Copyright (c) 2011-2012 Beau Sorensen email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.