Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via pnpm

handlebars 4.7.8

Handlebars provides the power necessary to let you build semantic templates effectively with no frustration
Package summary
Share
0
issues
3
licenses
4
MIT
1
BSD-3-Clause
1
BSD-2-Clause
Package created
22 Aug 2011
Version published
1 Aug 2023
Maintainers
6
Total deps
6
Direct deps
5
License
MIT

Issues

0
This package has no issues

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.7.8
minimist@1.2.8
neo-async@2.6.2
wordwrap@1.0.0

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

5
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
minimist1.2.815.16 kBMIT
prod
neo-async2.6.237.74 kBMIT
prod
source-map0.6.1194.96 kBBSD-3-Clause
prod
uglify-js3.17.4228.72 kBBSD-2-Clause
prod optional
wordwrap1.0.014.17 kBMIT
prod

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/.