fuller-common-js

0.3.3 • Public • Published

Common-js like modules for browser tool for Fuller

Build everything with right tool

For more info about fuller

CommonJS

Tiny and deadly simple commonJS (nodejs like) module realization. It consists from just two functions require and exports. You can write your client js like usual nodejs module.

    var a = require('a');
    var b = function () {
 
    }
    exports('b', b);

Fuller will wrap all, app and each module, in closures. So your modules will be availible only for your app. If you need to make your module global (to be avalible outside your app), just use

    exports('b', b, true);

Options

  • prologue – string will be inserted at the begining of the stream",
  • epilogue — string will be inserted at the end of the stream",
  • itemPrologue — string will be inserted before every item in the stream",
  • itemEpilogue — string will be inserted after every item in the stream"

Package Sidebar

Install

npm i fuller-common-js

Weekly Downloads

2

Version

0.3.3

License

BSD

Last publish

Collaborators

  • velocityzen