{"id":27039,"library":"hbars","title":"hbars","description":"A shim repository for an HTMLBars template transpiler that uses a Haml-like syntax (Haml bars). The current version is 0.1.7, last updated in 2016. It is a niche tool for converting Haml-style templates into HTMLBars format for use with Ember.js or similar frameworks. No alternative comparison data is available due to low community adoption.","status":"deprecated","version":"0.1.7","language":"javascript","source_language":"en","source_url":"https://github.com/code0100fun/hbars","tags":["javascript"],"install":[{"cmd":"npm install hbars","lang":"bash","label":"npm"},{"cmd":"yarn add hbars","lang":"bash","label":"yarn"},{"cmd":"pnpm add hbars","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only since v0.1.0","wrong":"const compile = require('hbars').compile","symbol":"compile","correct":"import { compile } from 'hbars'"},{"note":"Named export only; no default export.","wrong":"const hbars = require('hbars'); hbars.parse()","symbol":"parse","correct":"import { parse } from 'hbars'"},{"note":"Default export exists but deprecated; use named exports.","wrong":"const { default: hbars } = require('hbars')","symbol":"default","correct":"import hbars from 'hbars'"}],"quickstart":{"code":"import { compile } from 'hbars';\nconst hbarsCode = '%h1 Hello, world!';\nconst htmlbarsCode = compile(hbarsCode);\nconsole.log(htmlbarsCode);","lang":"javascript","description":"Transpile a simple Haml-like template to HTMLBars syntax."},"warnings":[{"fix":"Use the main repo directly.","message":"hbars is a shim repo; the main repo is https://github.com/code0100fun/hbars","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Consider using an alternative template engine like Ember's built-in templating.","message":"Package has not been updated since 2016; may not work with modern Node.js.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use ES import syntax or upgrade to a newer version if available.","message":"ESM-only; CommonJS require() will fail.","severity":"breaking","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'0.1.7':23 '2016':27 'adopt':59 'altern':50 'avail':54 'bar':18 'communiti':58 'comparison':51 'convert':34 'current':20 'data':52 'due':55 'ember.js':45 'format':41 'framework':48 'haml':14,17,36 'haml-lik':13 'haml-styl':35 'hbar':1 'htmlbar':7,40 'javascript':60 'last':24 'like':15 'low':57 'nich':31 'repositori':4 'shim':3 'similar':47 'style':37 'syntax':16 'templat':8,38 'tool':32 'transpil':9 'updat':25 'use':11,43 'version':21","created_at":"2026-05-01T17:44:12.256772+00:00","updated_at":"2026-05-01T17:44:12.256772+00:00","problems":[{"fix":"Run `npm install hbars` and ensure no typos.","cause":"Package not installed or typo in name.","error":"Cannot find module 'hbars'"},{"fix":"Use `import { compile } from 'hbars'` instead of `import hbars from 'hbars'`.","cause":"Using default import instead of named imports.","error":"hbars is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/code0100fun/hbars","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/hbars","openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}