{"id":19855023,"url":"https://github.com/stepci/liquidless","last_synced_at":"2025-10-12T15:37:28.221Z","repository":{"id":61727159,"uuid":"552970340","full_name":"stepci/liquidless","owner":"stepci","description":"Shopify's Liquid template engine, but less powerful","archived":false,"fork":false,"pushed_at":"2024-06-22T19:07:17.000Z","size":128,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-21T17:43:46.345Z","etag":null,"topics":["hacktoberfest","liquid","liquid-templating-engine","template-engine"],"latest_commit_sha":null,"homepage":"https://stepci.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stepci.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-17T14:05:56.000Z","updated_at":"2025-04-16T10:38:36.000Z","dependencies_parsed_at":"2024-01-12T17:49:19.256Z","dependency_job_id":"8999efce-c670-44f1-8f75-5afa7ab38a65","html_url":"https://github.com/stepci/liquidless","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":0.25,"last_synced_commit":"740cfca97ce7b3077ba233e5d3ed4575d5526de7"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepci%2Fliquidless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepci%2Fliquidless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepci%2Fliquidless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stepci%2Fliquidless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stepci","download_url":"https://codeload.github.com/stepci/liquidless/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251969254,"owners_count":21673182,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","liquid","liquid-templating-engine","template-engine"],"created_at":"2024-11-12T14:11:25.718Z","updated_at":"2025-10-12T15:37:23.188Z","avatar_url":"https://github.com/stepci.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# liquidless\n\nShopify's Liquid template engine, but less powerful. Perfect for configuration files\n\n## Get Started\n\nInstall the dependency from npm:\n\n```sh\nnpm i liquidless\n```\n\nImport the `renderString` function\n\n```js\nimport { renderString } from 'liquidless'\n```\n\n## Usage\n\n**Example: Rendering a string**\n\n```js\nrenderString('Hello, {{ world }}', { world: 'world!' })\n```\n\nOutputs:\n\n```\nHello, world!\n```\n\n**Example: Using filters**\n\n```js\nrenderString('Hello, {{ world | upcase }}', { world: 'world!' })\n```\n\nOutputs:\n\n```\nHello, WORLD!\n```\n\n**Example: Supplying custom filters**\n\n```js\nrenderString('Hello, {{ world | something: 1, 2, 3 }}', { world: 'world!' }, {\n  filters: {\n    something: (value, args, variable) =\u003e `${value} ${args.join(', ')} (${variable})`\n  }\n})\n```\n\nOutputs:\n\n```\nHello, world! 1, 2, 3 (world)\n```\n\n**Example: Rending values in an object**\n\n```js\nimport { renderObject } from 'liquidless'\nrenderObject([{hello: {world: '{{ world }}'}}], { world: 'world!' })\n```\n\nOutputs\n\n```js\n[{hello: {world: 'world!'}}]\n```\n\n## Filters\n\n- `append` - Adds a given string to the end of a string.\n- `base64_decode` - Decodes a string in Base64 format.\n- `base64_encode` - Encodes a string to Base64 format.\n- `camelize` - Converts a string to CamelCase.\n- `capitalize` - Capitalizes the first word in a string and downcases the remaining characters.\n- `downcase` - Converts a string to all lowercase characters.\n- `escape` - Escapes special characters in HTML, such as `\u003c\u003e`, ', and `\u0026`, and converts characters into escape sequences.\n- `hmac_sha1` - Converts a string into an SHA-1 hash using a hash message authentication code (HMAC).\n- `hmac_sha256` - Converts a string into an SHA-256 hash using a hash message authentication code (HMAC).\n- `lstrip` - Strips all whitespace from the left of a string.\n- `md5` - Converts a string into an MD5 hash.\n- `newline_to_br` - Converts newlines (`\\n`) in a string to HTML line breaks (`\u003cbr\u003e`).\n- `pluralize` - Outputs the singular or plural version of a string based on a given number.\n- `prepend` - Adds a given string to the beginning of a string.\n- `remove` - Removes any instance of a substring inside a string.\n- `remove_first` - Removes the first instance of a substring inside a string.\n- `remove_last` - Removes the last instance of a substring inside a string.\n- `replace` - Replaces any instance of a substring inside a string with a given string.\n- `replace_first` - Replaces the first instance of a substring inside a string with a given string.\n- `replace_last` - Replaces the last instance of a substring inside a string with a given string.\n- `rstrip` - Strips all whitespace from the right of a string.\n- `sha1` - Converts a string into an SHA-1 hash using a hash message authentication code (HMAC).\n- `sha256` - Converts a string into an SHA-256 hash using a hash message authentication code (HMAC).\n- `slice` - Returns a substring or series of array items, starting at a given 0-based index.\n- `split` - Splits a string into an array of substrings based on a given separator.\n- `strip` - Strips all whitespace from the left and right of a string.\n- `strip_html` - Strips all HTML tags from a string.\n- `strip_newlines` - Strips all newline characters (line breaks) from a string.\n- `toInt` - Converts a value to Int\n- `toFloat` - Converts a value to Float\n- `toString` - Converts a value to String\n- `upcase` - Converts a string to all uppercase characters.\n- `url_decode` - Decodes a string to URL-safe format by converting percent-encoded characters to special characters.\n- `url_encode` - Encodes a string to URL-safe format by converting special characters to percent-encoded characters.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepci%2Fliquidless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstepci%2Fliquidless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstepci%2Fliquidless/lists"}