mirror of
https://github.com/jakejarvis/hugo-extended.git
synced 2025-04-27 04:38:25 -04:00
Update README.md
This commit is contained in:
parent
e4b83248a0
commit
e9c4e84744
@ -15,8 +15,8 @@ hugo-bin now supports the [Extended Hugo version](https://github.com/gohugoio/hu
|
|||||||
### API
|
### API
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const { execFile } = require('child_process');
|
import { execFile } from 'node:child_process';
|
||||||
const hugo = require('hugo-bin');
|
import hugo from 'hugo-bin';
|
||||||
|
|
||||||
execFile(hugo, ['version'], (error, stdout) => {
|
execFile(hugo, ['version'], (error, stdout) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user