
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
simple-feature-flag
Advanced tools
A feature flag (also called feature toggle) makes it easier to enable or disable feature/functionality. This package will help you to implement such feature flag/toggle across your application in a easy way.
You can install the package via npm:
npm install simple-feature-flag
For every flag you create there must be at least one filter associated. Filters are classes which contains business logic. For example: IsEnabled() and IsDisabled() are two in-build filters which can be added while creating a flag. You can also create your custom filters for any customized logic.
Create a file called feature-flag.ts
First step is to create flags for the feature we want to toggle. For this we're using FlagBuilder.
const oktoberfestFlag = new FlagBuilder('oktober-fest')
.addFilters('live', new IsDisabled())
.addFilters('staging', new IsEnabled())
.build();
As you can see oktober-fest feature is set to be disabled in live and enabled for staging environment.
Now you just need to add created flag using FeatureFlagBuilder.
const featureFlag = new FeatureFlagBuilder()
.setEnvironment('staging')
.addFlag(oktoberfestFlag)
.build();
Just use featureFlag instance in you application to check if given feature is enabled or not for specified environment.
if (featureFlag.isEnabled('oktober-fest')) {
// code when feature is enabled
}
npm run test
FAQs
Simple Feature Flag
We found that simple-feature-flag 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.