
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.
nuxt-feature-flags-module
Advanced tools
Lightweight, environment-based feature flag system for Nuxt - made for developers who need dynamic feature control in routes, components, and APIs.
Lightweight, environment-based feature flag system for Nuxt - made for developers who need dynamic feature control in routes, components, and APIs.
Install the module to your Nuxt application with one command:
npx nuxi module add nuxt-feature-flags-module
That's it! You can now use Nuxt Feature Flags in your Nuxt app โจ
Then define your feature flags in nuxt.config.ts
:
export default defineNuxtConfig({
modules: ['nuxt-feature-flags-module'],
featureFlags: {
environment: process.env.FEATURE_ENV || 'development',
flagSets: {
development: ['yourFeature1', 'yourFeature2', 'yourFeature3', 'yourFeature4'],
staging: ['yourFeature1'],
production: []
}
}
})
Use in your app:
<template>
<button v-feature="'yourFeature1'">Try Feature 1</button>
</template>
Or via composable:
const { isEnabled, listFlags } = useFeatureFlag()
if (isEnabled('yourFeature2')) {
// do something
}
console.log(listFlags()) // returns ['yourFeature1', 'yourFeature2', 'yourFeature3', 'yourFeature4']
Or in your server API:
export default defineEventHandler((event) => {
if (!isFeatureEnabled('yourFeature3', event)) {
return sendError(event, createError({ statusCode: 403, message: 'Feature 3 is disabled' }))
}
return { message: 'Feature unlocked ๐' }
})
Or guard entire pages via definePageMeta
:
<script lang="ts">
definePageMeta({
featureFlag: 'yourFeature4',
featureFallback: '/404',
featureNotifyOnBlock: true,
})
</script>
# Install dependencies
pnpm install
# Generate type stubs
pnpm run dev:prepare
# Develop with the playground
pnpm run dev
# Build the playground
pnpm run dev:build
# Run ESLint
pnpm run lint
# Run Vitest
pnpm run test
pnpm run test:watch
# Release new version
pnpm run release
This project is licensed under the MIT License.
v2025.6.2
environments
to flags
in feature flag configuration (d298505)flags
to flagSets
in feature flag configuration (14ceeaa)workflow_dispatch
trigger (9c636be)FAQs
Lightweight, environment-based feature flag system for Nuxt - made for developers who need dynamic feature control in routes, components, and APIs.
The npm package nuxt-feature-flags-module receives a total of 121 weekly downloads. As such, nuxt-feature-flags-module popularity was classified as not popular.
We found that nuxt-feature-flags-module demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.