Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@huddle01/feature-flags
Advanced tools
Unleash the Power of Controlled Feature Rollouts in Your Typescript Projects
NOTE: Request for access to the huddle01-client pkg on Huddle01's discord or reach out to the team.
Feature Flags are necessary for multiple usecases, when you need to hide certain features from the end-user for cases like
After installing the package, you can fetch the feature flags
import { getEdgeFeatFlags } from '@huddle01/feature-flags';
const featFlags = await getEdgeFeatFlags(configUrl);
console.log({ featFlags });
// Output
{
"feature-1": {
enabledFor: ["axit.eth"];
};
"feature-2": {
enabledFor: ["*"]; // enabled for everyone in huddle01 team
};
}
Once you've fetched the feature flags you need to sync them to state which can be done using the useSyncFlags()
hook.
import { useSyncFlags } from '@huddle01/feature-flags';
const App = () => {
useSyncFlags(featFlags);
return <></>;
};
Once you've synced the feature flags you can use a feature flag in the following way:
import { useSyncFlags } from '@huddle01/feature-flags';
const App = () => {
const { enabledFor, isEnabled } = useFeatureFlag({
key: 'feature-1',
address: 'axit.eth',
});
console.log({ enabledFor, isEnabled });
return <></>;
};
// Output
{
enabledFor: ['axit.eth'];
isEnabled: true;
}
💡 For more information head to https://huddle01.com/docs
💡 For any help reach out to us on Discord
FAQs
Unleash the Power of Controlled Feature Rollouts in Your Typescript Projects
The npm package @huddle01/feature-flags receives a total of 0 weekly downloads. As such, @huddle01/feature-flags popularity was classified as not popular.
We found that @huddle01/feature-flags demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.