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

hugo-extended

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hugo-extended - npm Package Compare versions

Comparing version 0.63.2 to 0.64.0

6

lib/index.js
'use strict';
const path = require('path');
const BinWrapper = require('bin-wrapper');
const binWrapper = require('bin-wrapper');
const { hugoVersion } = require('../package.json');

@@ -10,3 +10,3 @@

// Default to extended Hugo, fall back to vanilla Hugo on unsupported platforms
const extendedBin = new BinWrapper()
const hugoBin = new binWrapper()
.src(`${baseUrl}hugo_extended_${hugoVersion}_Linux-64bit.tar.gz`, 'linux', 'x64')

@@ -28,3 +28,3 @@ .src(`${baseUrl}hugo_extended_${hugoVersion}_macOS-64bit.tar.gz`, 'darwin', 'x64')

module.exports = function () {
return extendedBin;
return hugoBin;
};
'use strict';
const path = require('path');
const signale = require('signale');
const bin = require('.');

@@ -11,5 +10,4 @@

const initCwd = process.env.INIT_CWD;
if (initCwd) {
if (initCwd)
return initCwd;
}

@@ -21,5 +19,4 @@ // Fallback of getting INIT_CWD

// otherwise return the `cwd` (ordinary it will be the postinstall process of hugo-bin itself).
if (paths.length > 1 && paths[paths.length - 2] === 'node_modules') {
if (paths.length > 1 && paths[paths.length - 2] === 'node_modules')
return path.resolve('../../', cwd);
}

@@ -31,6 +28,6 @@ return cwd;

.then(() => {
signale.success('Hugo binary installed successfully!');
console.log('✔ Hugo installed successfully!');
})
.catch(error => {
signale.fatal(`${error.message}\nHugo binary installation failed!`);
console.error('✖ ERROR: Hugo installation failed. :(\n', error);
});
{
"name": "hugo-extended",
"version": "0.63.2",
"hugoVersion": "0.63.2",
"version": "0.64.0",
"hugoVersion": "0.64.0",
"description": "Plug-and-play binary wrapper for Hugo Extended, the awesomest static-site generator.",
"homepage": "https://github.com/jakejarvis/hugo-node#readme",
"homepage": "https://github.com/jakejarvis/hugo-extended#readme",
"license": "MIT",

@@ -15,3 +15,3 @@ "author": {

"type": "git",
"url": "git+https://github.com/jakejarvis/hugo-node.git"
"url": "git+https://github.com/jakejarvis/hugo-extended.git"
},

@@ -31,4 +31,3 @@ "keywords": [

"bin-wrapper": "^4.1.0",
"rimraf": "^3.0.1",
"signale": "^1.4.0"
"rimraf": "^3.0.1"
},

@@ -47,3 +46,3 @@ "devDependencies": {

"engines": {
"node": ">=10"
"node": ">=8"
},

@@ -50,0 +49,0 @@ "files": [

@@ -1,2 +0,2 @@

# hugo-extended via NPM [![CI status](https://github.com/jakejarvis/hugo-node/workflows/Test/badge.svg)](.github/workflows) [![npm](https://img.shields.io/npm/v/hugo-extended)](https://www.npmjs.com/package/hugo-extended) [![Hugo v0.63.2](https://img.shields.io/badge/Hugo-v0.63.2-orange)](https://github.com/gohugoio/hugo) [![Dependabot](https://api.dependabot.com/badges/status?host=github&repo=jakejarvis/hugo-node)](https://github.com/jakejarvis/hugo-node/pulls?q=is%3Apr+label%3Adependencies)
# <img src="https://raw.githubusercontent.com/gohugoio/gohugoioTheme/master/static/images/hugo-logo-wide.svg?sanitize=true" alt="Hugo" width="115"> via NPM [![CI status](https://github.com/jakejarvis/hugo-extended/workflows/Run%20tests/badge.svg)](https://github.com/jakejarvis/hugo-extended/actions) [![npm](https://img.shields.io/npm/v/hugo-extended?color=red)](https://www.npmjs.com/package/hugo-extended) [![Hugo v0.63.2](https://img.shields.io/badge/Hugo-v0.63.2-orange)](https://github.com/gohugoio/hugo) [![Dependabot](https://api.dependabot.com/badges/status?host=github&repo=jakejarvis/hugo-extended)](https://github.com/jakejarvis/hugo-extended/pulls?q=is%3Apr+label%3Adependencies)

@@ -17,17 +17,4 @@ > Plug-and-play binary wrapper for [Hugo Extended](https://gohugo.io/), the awesomest static-site generator.

### API
See the [Hugo Documentation](https://gohugo.io/documentation/) for additional functionality.
```js
const { execFile } = require('child_process');
const hugo = require('hugo-extended');
execFile(hugo, ['version'], (error, stdout) => {
if (error) {
throw error;
}
console.log(stdout);
});
```
### package.json

@@ -45,3 +32,3 @@

#### CLI
#### CLI:

@@ -60,4 +47,19 @@ ```sh

See the [Hugo Documentation](https://gohugo.io/documentation/) for additional functionality.
---
### API
```js
const { execFile } = require('child_process');
const hugo = require('hugo-extended');
execFile(hugo, ['version'], (error, stdout) => {
if (error) {
throw error;
}
console.log(stdout);
});
```
## Examples

@@ -64,0 +66,0 @@

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