Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Removing the chaos from your features.
npm install featurama
To use:
var featurama = require('featurama')('/features/');
In /features
(or whatever you specified in the require
statement):
module.exports = {
featureName: 'Feature 1',
buildTimeEnabled: false,
jsFiles: [
'feature1.js',
],
vendorFiles: [],
scssFiles: [
'_feature1.scss',
],
};
Return the boolean value or execute the function that defines if this feature is enabled or not.
Parameters
buildTimeEnabled: boolean | function
, data from the config file that indicates enabled status
Returns: boolean
, true
if enabled
Build a list of files to exclude
Returns: object
, object of arrays containing files to exclude
Build a list of files to include
Returns: object
, object of arrays containing files to include
Get a list of all of the declared features, teir states, and file lists
Returns: object
, Combined feature configs
Build a key:value list of features and their enabled states
Returns: object
, key: value pairs
FAQs
Enable/Disable features via JS config files.
The npm package featurama receives a total of 14 weekly downloads. As such, featurama popularity was classified as not popular.
We found that featurama 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.