🚀 Launch Week Day 5:Introducing Immutable Scans.Learn More →
Socket
Book a DemoInstallSign in
Socket

handlebars-helper-pkg

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-helper-pkg

{{pkg}} handlebars helper, for returning the value of a property from package.json.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
2
Created
Source

{{pkg}} NPM version

{{pkg}} handlebars helper, for retrieving a value from your project's package.json.

Quickstart

In the root of your project, run the following in the command line:

npm i handlebars-helper-pkg --save-dev

Assemble config

If you use Assemble config and Grunt, in your Gruntfile simply add handlebars-helper-pkg to the helpers property in the Assemble task or target options:

grunt.initConfig({
  assemble: {
    options: {
      // the 'handlebars-helper-pkg' module must also be listed in devDependencies
      // for assemble to automatically resolve the helper
      helpers: ['handlebars-helper-pkg', 'foo/*.js']
    }
    ...
  }
});

You can now use begin using the helper in your templates:

v{{pkg "version"}}

Returns:

v0.1.0

Author

Licensed under the MIT License Copyright (c) Jon Schlinkert, contributors.

Keywords

assemble

FAQs

Package last updated on 01 May 2014

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