# includejs

> Resource Loader

Latest version **0.17.14** (published 2025-06-19) · 0 weekly downloads

## Install

```sh
npm install includejs
pnpm add includejs
yarn add includejs
bun add includejs
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.17.14 |
| Published | 2025-06-19 |
| First published | 2012-10-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 706.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Alex Kit |
| Maintainers | tenbits |

## Links

- npm: https://www.npmjs.com/package/includejs
- Repository: https://github.com/tenbits/IncludeJS
- Homepage: http://atmajs.com/include
- Issues: https://github.com/tenbits/IncludeJS/issues
- npm.io page: https://npm.io/package/includejs

## Recent versions

- 0.17.14 (latest) — 2025-06-19
- 0.17.13 — 2025-06-19
- 0.17.12 — 2025-03-18
- 0.17.11 — 2025-03-04
- 0.17.10 — 2025-01-29
- 0.17.9 — 2025-01-29
- 0.17.8 — 2025-01-27
- 0.17.7 — 2025-01-24
- 0.17.6 — 2024-12-07
- 0.17.5 — 2024-09-04
- 0.17.4 — 2024-02-05
- 0.17.3 — 2024-02-05
- 0.17.2 — 2023-10-31
- 0.17.1 — 2023-04-17
- 0.16.9 — 2022-06-27
- … 153 more at https://npm.io/package/includejs/versions

## README

#### IncludeJS

_The Resource Loader for Browsers and NodeJS_ with `AMD` and `CommonJS` support.

[![Build Status](https://travis-ci.org/atmajs/IncludeJS.svg?branch=master)](https://travis-ci.org/atmajs/IncludeJS)
[![NPM version](https://badge.fury.io/js/includejs.svg)](http://badge.fury.io/js/includejs)
[![Bower version](https://badge.fury.io/bo/includejs.svg)](http://badge.fury.io/bo/includejs)

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](https://github.com/atmajs/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
	```javascript
	include
		.routes({ controller: '/src/controllers/{0}.js' }); 
		//... 
	include
		.js({controller: 'user' });
	```
- Parameterized include
	```javascript
	// foo.js
	include.js({ compo: 'baz?color=green' });
	
	// baz.js
	document.body.style.backgroundColor = include.iparams.color
	```
	
- Javascript Aliases
	```javascript
	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

	```javascript
	// pause current module
	var resume = include.pause();
	
	someAsyncJob(function(){
		// resume with exports example
		resume({ baz: 'quux' });
	})
	```

----
:copyright: 2014 Atma.js Project

---
_Source: https://npm.io/package/includejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
