Research
Security News
Malicious PyPI Package ‘pycord-self’ Targets Discord Developers with Token Theft and Backdoor Exploit
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
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 1 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.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.