Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

includejs

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

includejs

Resource Loader

  • 0.12.43
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
292
decreased by-25.13%
Maintainers
1
Weekly downloads
 
Created
Source
IncludeJS

The Resource Loader for Browsers and NodeJS

Build Status NPM version Bower version

Features:

  • Loads any content: scripts, styles, ajax

  • Development friendly: incremental builds are not required

  • Production: Build the application into single html, js and css @see the Atma.Toolkit

  • 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' });
    })
    

:copyright: 2014 Atma.js Project

FAQs

Package last updated on 25 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc