
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@crbroughton/nuxt-ignore-folders
Advanced tools
A simple Nuxt module that allows you to specify folders to ignore from the file-based routing system. By default, Nuxt's pages router includes all files in the pages
directory, but sometimes you may want to keep other folders (like components
, utils
, etc.) in your pages directory without them becoming part of your routes.
npm install @crbroughton/nuxt-ignore-folders
Add the module to your nuxt.config.ts
:
export default defineNuxtConfig({
modules: [
'@crbroughton/nuxt-ignore-folders'
],
// Module options
ignoreFolders: {
// Specify folders to ignore (replaces defaults)
folders: ['composables']
}
})
Option | Type | Default | Description |
---|---|---|---|
folders | string[] | ['assets', 'components', 'composables', 'layouts', 'middleware', 'plugins', 'public', 'server', 'shared', 'utils'] | Array of folder names to ignore from file-based routing. If you specify this option, it will replace the default list. |
This module hooks into Nuxt's pages:extend
hook to filter out pages that match your ignored folder patterns. Any page with a file path containing /<folder>/
will be excluded from routing.
For example, if you set folders: ['components']
, the following paths would be excluded:
/components/Button.vue
/admin/components/Sidebar.vue
/any/path/with/components/inside.vue
But these would still be included:
/component-demos/index.vue
(not in a 'components' folder)/about/components-overview.vue
(not in a 'components' folder)MIT
FAQs
Ignore folders from file-based router
We found that @crbroughton/nuxt-ignore-folders demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.