includejs

0.17.12 • Public • Published

IncludeJS

The Resource Loader for Browsers and NodeJS with AMD and CommonJS support.

Build Status NPM version Bower version

Features:

  • Loads any content: scripts, styles, ajax

  • Development friendly: incremental builds are not required

  • ES6 Imports

  • Production: Build the application into single html, js and css @see the app-bundler

  • Inline Dependency Declaration

    No external files, such as package.json or config.js

  • Load any javascript

  • No prerequests for module declaration. But supports also CommonJS and include.exports

  • Namespaced routing

     include
     	.routes({ controller: '/src/controllers/{0}.js' }); 
     	//... 
     include
     	.js({controller: 'user' });
  • Parameterized include

     // foo.js
     include.js({ compo: 'baz?color=green' });
     
     // baz.js
     document.body.style.backgroundColor = include.iparams.color
  • Javascript Aliases

     include.js('myScript.js::Logger').done(function(response){
     	response.Logger.logMe();
     });	
  • Custom Loader Support

  • Lazy Modules

    Scripts will be evaluated only when you needs them

  • Pause resource loading

     // pause current module
     var resume = include.pause();
     
     someAsyncJob(function(){
     	// resume with exports example
     	resume({ baz: 'quux' });
     })

©️ 2014 Atma.js Project

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.17.121,524latest

Version History

VersionDownloads (Last 7 Days)Published
0.17.121,524
0.17.112
0.17.106
0.17.91
0.17.81
0.17.72
0.17.62
0.17.52
0.17.41
0.17.31
0.17.22
0.17.11
0.16.91
0.16.81
0.16.71
0.16.61
0.16.51
0.16.41
0.16.31
0.16.21
0.16.11
0.15.522
0.15.512
0.15.501
0.15.493
0.15.482
0.15.471
0.15.451
0.15.442
0.15.431
0.15.421
0.15.411
0.15.401
0.15.392
0.15.381
0.15.371
0.15.361
0.15.351
0.15.341
0.15.331
0.15.321
0.15.312
0.15.302
0.15.291
0.15.281
0.15.272
0.15.262
0.15.251
0.15.241
0.15.221
0.15.211
0.15.201
0.15.191
0.15.181
0.15.172
0.15.152
0.15.141
0.15.131
0.15.123
0.15.112
0.15.91
0.15.81
0.15.61
0.15.51
0.15.42
0.15.32
0.15.13
0.12.701
0.12.681
0.12.661
0.12.651
0.12.611
0.12.591
0.12.581
0.12.561
0.12.551
0.12.531
0.12.501
0.12.481
0.12.461
0.12.451
0.12.441
0.12.431
0.12.412
0.12.401
0.12.391
0.12.382
0.12.372
0.11.361
0.11.351
0.11.342
0.11.331
0.10.326
0.10.311
0.10.302
0.10.292
0.10.282
0.10.272
0.9.190
0.9.180
0.9.171
0.9.160
0.9.152
0.9.140
0.9.130
0.9.120
0.9.110
0.9.101
0.9.90
0.9.60
0.9.50
0.9.310
0.9.303
0.9.290
0.9.280
0.9.271
0.9.260
0.9.250
0.9.240
0.9.231
0.9.220
0.9.210
0.9.21
0.9.11
0.8.10
0.8.00
0.7.211
0.7.21
0.7.150
0.7.120
0.7.110
0.7.10
0.7.00
0.6.90
0.6.810
0.6.80
0.6.70
0.6.60
0.6.40
0.6.30
0.6.20
0.6.10
0.6.00
0.5.90
0.5.80
0.5.70
0.5.60
0.5.50
0.5.40
0.5.30
0.5.20
0.5.10
0.5.00
0.4.90
0.4.80
0.4.70
0.4.60
0.4.51
0.4.40
0.4.21
0.3.82
0.3.70
0.3.60
0.3.50
0.3.40
0.3.30

Package Sidebar

Install

npm i includejs

Weekly Downloads

1,681

Version

0.17.12

License

none

Unpacked Size

723 kB

Total Files

9

Last publish

Collaborators

  • tenbits