A maintained fork of Hogan.js by Profound Logic. Removes deprecated mkdirp usage and ensures compatibility with modern Node.js.
npm install @profoundlogic/hoganA maintained fork of Hogan.js by Profound Logic.
This fork removes deprecated dependencies (notably mkdirp) and ensures compatibility with modern versions of Node.js while maintaining full API compatibility with the original Hogan.js templating engine.
- Original project: https://github.com/twitter/hogan.js
- This fork: https://github.com/ProfoundLogic/hogan.js-ProfoundLogic
- npm: https://www.npmjs.com/package/@profoundlogic/hogan
---
``bash
npm install @profoundlogic/hogan
Usage
js
Copy code
const Hogan = require('@profoundlogic/hogan');
const template = Hogan.compile('Hello {{name}}!');
console.log(template.render({ name: 'World' })); // Hello World!
Why this fork?
hogan.js is no longer maintained and depends on an outdated version of mkdirp, causing deprecation warnings in downstream packages.
This fork replaces mkdirp with native Node.js file operations and will be maintained by Profound Logic.
License & Attribution
Licensed under the Apache License, Version 2.0.
See LICENSE.
Original authors (Twitter):
Robert Sayre
Jacob Thornton
Maintained by:
Profound Logic Software, Inc.
yaml
Copy code
---
This version is short, professional, and complete — it has everything npm users (and the diff2html maintainer) need.
---
1. Copy that short version into your README.md file.``bash
2. Save it.
3. Commit it:
git add README.md
git commit -m "docs: simplify README for @profoundlogic/hogan"
Bump and publish:
bash
Copy code
npm version 3.0.4 -m "chore: update README and metadata (%s)"
git push --follow-tags
npm publish --access=public