Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hb-interpolate

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hb-interpolate

Interpolate a json file through a Handlebars template file to stdout.

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

hb-interpolate

Interpolate a json file through a Handlebars template file to stdout.

Build Status

About

hb-interpolate is a very simple command line tool that reads a .json file and a Handlebars template file, and then writes the implied interpolation to stdout.

Usage

$ hb-interpolate --help

  Usage: hb-interpolate [options]

  Options:

    -h, --help             output usage information
    -j, --json [path]      JSON file with input data
    -t, --template [path]  Handlebars template to interpolate
    -n, --noEscape         Don't do HTML escaping

If the JSON file is a package.json, read-package-json is used to read the file.
Note that read-package-json normalizes some fields.
  `--json [path]` and `--tempate [path]` are REQUIRED.

Notes

  • The --json [path] and --template [path] arguments are required.
  • If the basename of the json path is package.json, hb-interpolate uses the node package read-package-json to read the file, which normalizes some fields, in particular all people fields. Any other json file is returned directly as read.
  • The --noEscape option may be used to turn off Handlebars HTML escaping.

Keywords

FAQs

Package last updated on 12 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc