New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hugo-extended

Package Overview
Dependencies
Maintainers
1
Versions
202
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.88.0 to 0.88.1-patch1

index.d.ts

4

index.js
import path from "path";
import { fileURLToPath } from "url";
import { getBinFilename } from "./lib/utils.js";

@@ -10,5 +11,6 @@ // https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c#what-do-i-use-instead-of-__dirname-and-__filename

"vendor",
process.platform === "win32" ? "hugo.exe" : "hugo",
getBinFilename(),
);
// The only thing this module really exports is the absolute path to Hugo:
export default hugo;
{
"name": "hugo-extended",
"version": "0.88.0",
"version": "0.88.1-patch1",
"hugoVersion": "0.88.1",
"description": "✏️ Plug-and-play binary wrapper for Hugo Extended, the awesomest static-site generator.",
"license": "MIT",
"homepage": "https://github.com/jakejarvis/hugo-extended",
"author": {

@@ -17,27 +19,24 @@ "name": "Jake Jarvis",

"index.js",
"cli.js",
"install.js"
"index.d.ts",
"lib"
],
"bin": {
"hugo": "cli.js",
"hugo-extended": "cli.js"
"hugo": "lib/cli.js",
"hugo-extended": "lib/cli.js"
},
"type": "module",
"exports": "./index.js",
"types": "./index.d.ts",
"dependencies": {
"chalk": "^4.1.2",
"decompress": "^4.2.1",
"execa": "^5.1.1",
"fs-extra": "^10.0.0",
"got": "^11.8.2",
"sumchecker": "^3.0.1",
"tempy": "^2.0.0"
"careful-downloader": "^1.4.0",
"log-symbols": "^5.0.0",
"read-pkg-up": "^9.0.0"
},
"devDependencies": {
"@jakejarvis/eslint-config": "*",
"eslint": "^7.32.0",
"mocha": "^9.1.1"
"eslint": "^8.0.0",
"mocha": "^9.1.2"
},
"scripts": {
"postinstall": "node install.js",
"postinstall": "node lib/install.js",
"test": "eslint . && mocha"

@@ -74,11 +73,10 @@ },

"env": {
"node": true
"node": true,
"es6": true
},
"rules": {
"compat/compat": "off"
},
"ignorePatterns": [
"vendor/**"
"vendor/**",
"*.d.ts"
]
}
}

@@ -17,2 +17,10 @@ # <img src="https://raw.githubusercontent.com/gohugoio/gohugoioTheme/master/static/images/hugo-logo-wide.svg?sanitize=true" alt="Hugo" width="115"> via NPM [![npm](https://img.shields.io/npm/v/hugo-extended?color=blue&logo=npm)](https://www.npmjs.com/package/hugo-extended) [![CI status](https://github.com/jakejarvis/hugo-extended/workflows/Run%20tests/badge.svg)](https://github.com/jakejarvis/hugo-extended/actions)

_Note:_ If you'll be using the SCSS features of Hugo Extended, it's probably smart to install [`postcss`](https://www.npmjs.com/package/postcss), [`postcss-cli`](https://www.npmjs.com/package/postcss-cli), and [`autoprefixer`](https://www.npmjs.com/package/autoprefixer) as devDependencies too, since they can be conveniently called via [built-in Hugo pipes](https://gohugo.io/hugo-pipes/postcss/):
```sh
npm install postcss postcss-cli autoprefixer --save-dev
# or...
yarn add postcss postcss-cli autoprefixer --dev
```
## Usage

@@ -24,7 +32,7 @@

If you'll be using the SCSS features of Hugo Extended, it's probably smart to install [`postcss`](https://www.npmjs.com/package/postcss), [`postcss-cli`](https://www.npmjs.com/package/postcss-cli), and [`autoprefixer`](https://www.npmjs.com/package/autoprefixer) as devDependencies too, since they can be called via [built-in Hugo pipes](https://gohugo.io/hugo-pipes/postcss/).
The `build:preview` script below is designed for [Netlify deploy previews](https://www.netlify.com/blog/2016/07/20/introducing-deploy-previews-in-netlify/), where [`$DEPLOY_PRIME_URL`](https://docs.netlify.com/configure-builds/environment-variables/#deploy-urls-and-metadata) is substituted for the base URL (usually ending in .netlify.app) of each pull request, branch, or commit preview.
The `build:preview` script below is designed for [Netlify deploy previews](https://www.netlify.com/blog/2016/07/20/introducing-deploy-previews-in-netlify/), where [`$DEPLOY_PRIME_URL`](https://docs.netlify.com/configure-builds/environment-variables/#deploy-urls-and-metadata) is substituted for the base URL (usually ending in netlify.app) of each commit or pull request.
```jsonc
// package.json:
```jsonc
{

@@ -38,5 +46,5 @@ // ...

"devDependencies": {
"autoprefixer": "^10.2.5",
"hugo-extended": "^0.83.1",
"postcss": "^8.2.9",
"autoprefixer": "^10.3.4",
"hugo-extended": "^0.88.1",
"postcss": "^8.3.6",
"postcss-cli": "^8.3.1"

@@ -51,3 +59,4 @@ }

Building sites …
Start building sites …
hugo v0.88.1-5BC54738+extended darwin/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio

@@ -66,2 +75,5 @@ | EN

Built in 2361 ms
Watching for changes in {archetypes,assets,content,data,layouts,package.json,static}
Watching for config changes in config.toml
Environment: "development"
Serving pages from memory

@@ -74,2 +86,4 @@ Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)

```js
// version.js:
import hugo from "hugo-extended";

@@ -83,2 +97,7 @@ import { execFile } from "child_process";

```bash
$ node version.js
hugo v0.88.1-5BC54738+extended darwin/amd64 BuildDate=2021-09-04T09:39:19Z VendorInfo=gohugoio
```
## Examples

@@ -90,4 +109,2 @@

Forked from [fenneclab/hugo-bin](https://github.com/fenneclab/hugo-bin) under the [MIT License](https://github.com/fenneclab/hugo-bin/blob/master/LICENSE), (c) [Shun Sato](http://blog.fenneclab.com/).
Hugo is distributed under the [Apache License 2.0](https://github.com/gohugoio/hugo/blob/master/LICENSE).
This project is distributed under the [MIT License](LICENSE.md). Hugo is distributed under the [Apache License 2.0](https://github.com/gohugoio/hugo/blob/master/LICENSE).
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