PHPackages                             jsutils/file - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. jsutils/file

ActiveLibrary[File &amp; Storage](/categories/file-storage)

jsutils/file
============

Javascript File Utility

0.1.9(9y ago)18611MITJavaScript

Since Jul 14Pushed 9y ago3 watchersCompare

[ Source](https://github.com/jsutils/file)[ Packagist](https://packagist.org/packages/jsutils/file)[ RSS](/packages/jsutils-file/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (19)Used By (1)

\##getJSON load JSON file from server and applies *dummyJSON* if data is passed.

```
//my_server/my_json_file.json
{
	"people": {
		"id" : "{{data.id}}"
	}
}

//Client Side Code
var fileUtil = _module_("jsutils.file");

fileUtil.getJSON("my_server/my_json_file.json",{ id : 100}).done(function(resp){
	//formatted json
});

//OUTPUT FORMATTED
{
	"people": {
		"id" : "100"
	}
}
```

\##getHTML load HTML file from server, applies *underscore* templating on it.

```
//my_server/my_html_file.html

		Hi, Data id is {{data.id}}

//Client Side Code
var fileUtil = _module_("jsutils.file");

fileUtil.getHTML("my_server/my_html_file.html",{ id : 100}).done(function(resp){
	//formatted html
});

//OUTPUT FORMATTED

		Hi, Data id is 100

```

#### Include Nested HTML

[](#include-nested-html)

If template contains include tag, then nested HTML template is applied. Data can be passed as you wish to nested template.

```
//my_server/in_other_folder_my_other_html_file.html

	And My name is {{data.name}}

//my_server/my_html_file2.html

		Hi, Data id is {{data.id}}

//Client Side Code
var fileUtil = _module_("jsutils.file");

fileUtil.getHTML("my_server/my_html_file2.html",{
	 	id : 100,
	 	user : {
	 		name : "Lalit"
		}
	}).done(function(resp){
	//formatted html
});

//OUTPUT

		Hi, Data id is {{data.id}}

			And My name is Lalit

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~63 days

Total

18

Last Release

3314d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5b5b41a27c22c02fd7a9e66995586a7bc4851492eba68aa9b669faed3b9ccb9?d=identicon)[jqutils](/maintainers/jqutils)

---

Top Contributors

[![lnt](https://avatars.githubusercontent.com/u/5462166?v=4)](https://github.com/lnt "lnt (29 commits)")[![improm](https://avatars.githubusercontent.com/u/10056427?v=4)](https://github.com/improm "improm (2 commits)")

---

Tags

filemodule

### Embed Badge

![Health badge](/badges/jsutils-file/health.svg)

```
[![Health](https://phpackages.com/badges/jsutils-file/health.svg)](https://phpackages.com/packages/jsutils-file)
```

###  Alternatives

[unisharp/laravel-fileapi

Laravel File API - Handle Files with Laravel Storage

5345.3k](/packages/unisharp-laravel-fileapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
