Gathering detailed insights and metrics for liquidjs
Gathering detailed insights and metrics for liquidjs
Gathering detailed insights and metrics for liquidjs
Gathering detailed insights and metrics for liquidjs
A simple, expressive, safe and Shopify compatible template engine in pure JavaScript.
npm install liquidjs
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,532 Stars
1,200 Commits
236 Forks
26 Watching
13 Branches
78 Contributors
Updated on 26 Nov 2024
Minified
Minified + Gzipped
TypeScript (93.67%)
JavaScript (4.35%)
Liquid (0.93%)
Shell (0.69%)
Handlebars (0.35%)
HTML (0.01%)
Cumulative downloads
Total Downloads
Last day
5.4%
97,877
Compared to previous day
Last week
3.1%
497,527
Compared to previous week
Last month
9.5%
2,109,435
Compared to previous month
Last year
52.7%
19,784,584
Compared to previous year
1
45
A simple, expressive and safe Shopify / GitHub Pages compatible template engine in pure JavaScript. The purpose of this repo is to provide a standard Liquid implementation for the JavaScript community so that Jekyll sites, GitHub Pages and Shopify templates can be ported to Node.js without pain.
Basically there're two types of Liquid syntax: tags enclosed by {% %}
and outputs enclosed by {{ }}
. A Liquid template looks like:
1{% if username %} 2 {{ username | append: ", welcome to LiquidJS!" | capitalize }} 3{% endif %}
A live demo is also available and here's a quick tutorial for Liquid syntax.
Install from npm in Node.js:
1npm install liquidjs
Or use the UMD bundle from jsDelivr:
1<script src="https://cdn.jsdelivr.net/npm/liquidjs/dist/liquid.browser.min.js"></script>
Or render directly from CLI using npx:
1npx liquidjs --template 'Hello, {{ name }}!' --context '{"name": "Snake"}'
For more details, refer to the Setup Guide.
Feel free to create a PR or contact me to add your use case into this list!
If you personally love LiquidJS or it's benefiting your business, please consider financially support us via GitHub Sponsors. Special thanks to our sponsors!
Opensense | Eleventy | Peter deHaan | Touchless | Dropkiq | Dailycontributors | Serkan Holat |
amit777 | Khaled Salem | Sentry | Checkout Blocks | Customer IO | Emmanuel Cartelli | Microsoft |
PakStyle.pk | Syntax Podcast | Cartelli Emmanuel |
Want to contribute? see Contribution Guidelines. Thanks goes to these wonderful people:
The latest stable version of the package.
Stable Version
1
5.3/10
Summary
liquidjs may leak properties of a prototype
Affected Versions
< 10.0.0
Patched Versions
10.0.0
Reason
27 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
packaging workflow detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
41 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More