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

@gauntface/hugo-node

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gauntface/hugo-node

Run hugo commands easily from node.

  • 1.0.21
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

hugo-node-fns

Build and Test Publish

Run hugo commands easily from node.

API

const hugo = require('@gauntface/hugo-node');

const projectPath = "~/example-project/";

// Get the version of hugo in the current environment
const v = await hugo.version();

// Build the site
await hugo.build(projectPath);

// Start, restart and stop server
const flags = ['-D', '--ignoreCache', '--port=1314'];
await hugo.startServer(projectPath, flags);
await hugo.restartServer(projectPath, flags);
await hugo.stopServer();

FAQs

Package last updated on 02 Apr 2022

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