Home / npm packages / handlebars

handlebars source code

Every file of handlebars@4.7.9 as published on npm: 115 files, 2.8 MB. Search them by exact text or regex, in milliseconds.

It uses: new Function(), the fs module.

What handlebars uses

APIIn handlebars
eval()
runs a string as JavaScript
NoWho does
new Function()
builds a function from a string, like eval (with or without new)
Yes: 4 files
e.g. dist/handlebars.js
See the lines
child_process
starts other programs
NoWho does
process.env
reads environment variables
NoWho does
the fs module
reads and writes files
Yes: 3 files
e.g. lib/index.js
See the lines
http / https
makes or serves HTTP requests with Node's own modules
NoWho does
fetch()
makes HTTP requests
NoWho does
XMLHttpRequest
makes HTTP requests the old browser way
NoWho does
crypto
hashes, encrypts or makes random numbers
NoWho does
WebAssembly
loads WebAssembly code
NoWho does
document.cookie
reads or writes browser cookies
NoWho does
install scripts
runs a script when it's installed
NoWho does

Exact matches in the published files, so a mention in a comment counts too: open the lines to check.

Largest files

FileSize
dist/handlebars.amd.js615 KB
dist/amd/handlebars/compiler/parser.js209 KB
dist/cjs/handlebars/compiler/parser.js206 KB
dist/handlebars.js204 KB
dist/handlebars.runtime.amd.js132 KB
dist/amd/handlebars/compiler/javascript-compiler.js125 KB
dist/cjs/handlebars/compiler/javascript-compiler.js123 KB
dist/handlebars.min.js89 KB
dist/handlebars.amd.min.js80 KB
dist/handlebars.runtime.js74 KB
release-notes.md62 KB
dist/amd/handlebars/compiler/compiler.js59 KB
dist/cjs/handlebars/compiler/compiler.js58 KB
dist/amd/handlebars/runtime.js46 KB
dist/cjs/handlebars/runtime.js45 KB
dist/amd/precompiler.js35 KB
dist/cjs/precompiler.js35 KB
lib/handlebars/compiler/parser.js35 KB
lib/handlebars/compiler/javascript-compiler.js35 KB
dist/handlebars.runtime.min.js29 KB
dist/amd/handlebars/compiler/whitespace-control.js23 KB
dist/cjs/handlebars/compiler/whitespace-control.js23 KB
dist/amd/handlebars/compiler/helpers.js20 KB
dist/cjs/handlebars/compiler/helpers.js19 KB
dist/amd/handlebars/compiler/printer.js18 KB
dist/handlebars.runtime.amd.min.js18 KB
dist/cjs/handlebars/compiler/printer.js18 KB
dist/amd/handlebars/compiler/code-gen.js16 KB
dist/cjs/handlebars/compiler/code-gen.js16 KB
lib/handlebars/compiler/compiler.js15 KB

Questions

How many files are in handlebars?

Version 4.7.9 of handlebars publishes 115 files of source, 2.8 MB in all, not counting images, fonts and source maps.

Does handlebars use eval?

No: handlebars doesn't call eval() anywhere in its published files.

Does handlebars start other programs?

No: handlebars doesn't use child_process anywhere in its published files.

Does handlebars run an install script?

No: handlebars has no preinstall, install or postinstall script in its package.json.

npm packages that use…

Every package we've indexed →

Search your own code like this

The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.

See StackGrep Engine