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

hugo-bin

Package Overview
Dependencies
Maintainers
2
Versions
289
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hugo-bin

Binary wrapper for Hugo

  • 0.14.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
76K
increased by8.83%
Maintainers
2
Weekly downloads
 
Created
Source

hugo-bin Build Status

Binary wrapper for Hugo

Install

npm install --save-dev hugo-bin

Usage

API

const execFile = require('child_process').execFile;
const hugo = require('hugo-bin');

execFile(hugo, ['version'], (err, stdout) => {
  console.log(stdout);
});

CLI

$(npm bin)/hugo --help
npm run create -- 'post/my-new-post' # see below 'npm-run-script'

npm-run-script

{
  "scripts": {
    "build": "hugo",
    "create": "hugo new",
    "serve": "hugo server -ws"
  }
}

See the Hugo Documentation for more information.

Supported versions

hugo-bin versionHugo version
^0.14.0v0.27.1
^0.13.0v0.26
^0.12.0v0.25.1
^0.11.0v0.24.1
^0.10.0v0.23
^0.9.0v0.22.1
^0.8.0v0.21
^0.7.0v0.20.7
^0.6.0v0.19
^0.5.0v0.18.1
^0.4.0v0.17
^0.3.0v0.16

Full example

Super Inspired By

License

MIT © Shun Sato

FAQs

Package last updated on 14 Sep 2017

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