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

includejs

Package Overview
Dependencies
Maintainers
0
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

includejs

Resource Loader

  • 0.17.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
380
increased by59%
Maintainers
0
Weekly downloads
 
Created
Source
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' });
    })
    

:copyright: 2014 Atma.js Project

FAQs

Package last updated on 07 Dec 2024

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