
Security News
Socket Releases Free Certified Patches for Nuxt Security Vulnerabilities
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.
Serve static files for development, simple and unobstructive.
npm install -g goat
Then add it to your package.json as a script (you can also install without the -g for a single project):
{
"name": "my-project",
"scripts": {
"serve": "goat -e ./static/index.html ./dist"
}
}
Which can now be executed in the terminal with npm run serve.
Usage: goat [options]
Options:
-h, --help output usage information
-V, --version output the version number
-e, --entry-file [file] Usually an index.html, defaults to './index.html'
-p, --port [port] Port to run server on, defaults to 3000
-d, --domain-host [host] Host to serve static files at, defaults to 'localhost'
-x, --debug Enable development logging for debugging purposes
-c, --cors Enable cors
Any additional paths that you append to the end will be served as static directories.
When using -e, the parent directory is added as a static directory, so no need to add
it manually.
For custom named routes, use the : (colon) syntax. For example:
goat -e ./static/index.html ./dist/scripts:/scripts
Would make everything in the scripts folder available at localhost:3000/scripts.
Multiple formats are supported:
.js -- If you specify a .js file with a named route, it's assumed to be an express route, e.g. api/users.json:/api/users.
See the example route in test/route.js which can be ran with goat -e test/index.html test/route.js:/api/hello.json -- Is JSON, so we serve it as JSON, also only if there is an custom named route. This is an easy way to mock an API endpoint..html -- Sends the html.FAQs
Go out and eat some grass.
The npm package goat receives a total of 56 weekly downloads. As such, goat popularity was classified as not popular.
We found that goat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.