{"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,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","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,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}