Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 27, 2024 via pnpm

handlebars 4.3.1

Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
Package summary
Share
20
issues
5
critical severity
vulnerability
5
11
high severity
vulnerability
10
license
1
3
moderate severity
vulnerability
3
1
low severity
license
1
4
licenses
4
MIT
1
MIT/X11
1
BSD-3-Clause
1
BSD-2-Clause
Package created
22 Aug 2011
Version published
24 Sep 2019
Maintainers
6
Total deps
7
Direct deps
4
License
MIT

Issues

20

5 critical severity issues

critical
Recommendation: Upgrade to version 4.7.7 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.7.7 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.7.7 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.7.7 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 0.2.4 or later
via: optimist@0.6.1
Collapse
Expand

11 high severity issues

high
Recommendation: Upgrade to version 4.5.3 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.3 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.3 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.4.5 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.2 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.3 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.3 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.3 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.4.5 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.5.2 or later
via: handlebars@4.3.1
Recommendation: Validate that the package complies with your license policy
via: optimist@0.6.1
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Upgrade to version 4.4.5 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 4.4.5 or later
via: handlebars@4.3.1
Recommendation: Upgrade to version 0.2.1 or later
via: optimist@0.6.1
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: optimist@0.6.1
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
handlebars@4.3.1
minimist@0.0.10
neo-async@2.6.2
wordwrap@0.0.3

MIT/X11

Invalid
Not OSI Approved
1 Packages, Including:
optimist@0.6.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
source-map@0.6.1

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
uglify-js@3.17.4
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of handlebars 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
neo-async2.6.237.74 kBMIT
prod
optimist0.6.112.06 kBMIT/X11
prod
1
1
1
1
source-map0.6.1194.96 kBBSD-3-Clause
prod
uglify-js3.17.4228.72 kBBSD-2-Clause
prod optional

Visualizations

Frequently Asked Questions

What does handlebars do?

Handlebars is a powerful tool that enables you to build semantic templates efficiently, without any frustration. Originating as an extension to the Mustache templating language, Handlebars offers a logicless templating approach, ensuring a clean separation between the view and the code. It supports both Node.js and a wide range of browsers, offering boosted performance by enabling templates to be precompiled as JavaScript code for faster startup time.

How do you use handlebars?

To take advantage of Handlebars, firstly install it using npm:

npm install handlebars

Then, you can generate a semantic templating function via the Handlebars.compile method, as the following code snippet demonstrates:

var Handlebars = require('handlebars');

var source = "<p>Hello, my name is {{name}}. I am from {{hometown}}. I have " +
             "{{kids.length}} kids:</p>" +
             "<ul>{{#kids}}<li>{{name}} is {{age}}</li>{{/kids}}</ul>";
var template = Handlebars.compile(source);

var data = { "name": "Alan", "hometown": "Somewhere, TX",
             "kids": [{"name": "Jimmy", "age": "12"}, {"name": "Sally", "age": "4"}]};
var result = template(data);

// This will render:
// <p>Hello, my name is Alan. I am from Somewhere, TX. I have 2 kids:</p>
// <ul>
//   <li>Jimmy is 12</li>
//   <li>Sally is 4</li>
// </ul>

Not only does Handlebars support basic Mustache syntax, but it also introduces several additional features to help ease template creation, including helpers, block expressions, and more.

Where are the handlebars docs?

For comprehensive information on Handlebars, complete with examples and more intricate details, check out the official Handlebars documentation at https://handlebarsjs.com/. Additional resources, such as installation guides and frequently asked questions, can be found on the same website. Also, for an interactive exploration of how Handlebars works, visit the live demo at http://tryhandlebarsjs.com/.