Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Binary wrapper for Hugo
See Installation options for more details.
npm install hugo-bin --save-dev
import { execFile } from 'node:child_process';
import hugoPath from 'hugo-bin';
execFile(hugoPath, ['version'], (error, stdout) => {
if (error) {
throw error;
}
console.log(stdout);
});
# older npm
$(npm bin)/hugo --help
# newer npm (v9+)
npm exec hugo help
npm run create -- post/my-new-post.md # see below 'npm run-script'
rem older npm
for /f "delims=" %F in ('npm bin') do call "%F\hugo" help
rem newer npm (v9+)
npm exec hugo help
rem see below 'npm run-script'
npm run create -- post/my-new-post.md
{
"scripts": {
"build": "hugo",
"create": "hugo new",
"serve": "hugo server"
}
}
See the Hugo Documentation for more information.
hugo-bin supports options to change the variation of Hugo binaries and to overwrite the download repository.
Each option can be configured in one of the following ways:
hugo-bin
section of your package.json
{
"name": "your-package",
"version": "0.0.1",
"hugo-bin": {
"buildTags": "extended",
"downloadRepo": "https://some.example.com/artifactory/github-releases"
}
}
hugo_bin_build_tags = "extended"
hugo_bin_download_repo = "https://some.example.com/artifactory/github-releases"
export HUGO_BIN_BUILD_TAGS="extended"
export HUGO_BIN_DOWNLOAD_REPO="https://some.example.com/artifactory/github-releases"
Note that you have to run npm install hugo-bin
to re-install hugo-bin itself, if you change any of these options.
Default: ""
Set buildTags
to extended
to download the extended version binary.
If this is set to extended
but it's not available for the user's platform, then the normal version will be downloaded instead.
Default: "https://github.com"
Set it to your proxy URL to download the hugo binary from a different download repository.
See the package.json commit history.
MIT © Shun Sato
FAQs
Binary wrapper for Hugo
The npm package hugo-bin receives a total of 64,777 weekly downloads. As such, hugo-bin popularity was classified as popular.
We found that hugo-bin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.