Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
nuxt-robots-module
Advanced tools
A NuxtJS module thats inject a middleware to generate a robots.txt file
A NuxtJS module thats inject a middleware to generate a robots.txt file
$ npm install --save nuxt-robots-module
// or
$ yarn add nuxt-robots-module
Add nuxt-robots-module
to modules
section of nuxt.config.js
.
{
modules: [
// Simple usage
'nuxt-robots-module',
// With options
['nuxt-robots-module', {
/* module options */
UserAgent: 'Googlebot',
Disallow: '/',
}],
]
}
or even
{
modules: [
'nuxt-robots-module',
],
robots: {
/* module options */
UserAgent: '*',
Disallow: '/',
},
}
The module option parameter can be an object
(like above) or an array of objects
.
{
modules: [
'nuxt-robots-module',
],
robots: [
{
UserAgent: 'Googlebot',
Disallow: '/users',
},
{
UserAgent: 'Bingbot',
Disallow: '/admin',
},
],
}
UserAgent: Googlebot
Disallow: /users
UserAgent: Bingbot
Disallow: /admin
To run the development server, you can either install the dependencies locally by running:
npm install
or using Docker
with docker-compose
:
docker-compose up -d
This will run the a dev example through the 3000
port on localhost. You can then see your generated robots.txt in localhost:3000/robots.txt
.
Robots.txt generate code from https://github.com/weo-edu/express-robots repository. Project generated with Nuxt module builder.
FAQs
A NuxtJS module thats inject a middleware to generate a robots.txt file
The npm package nuxt-robots-module receives a total of 389 weekly downloads. As such, nuxt-robots-module popularity was classified as not popular.
We found that nuxt-robots-module 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.