Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
config-property-stamp
Advanced tools
A stamp that uses config to read configuration into a stamp property.
A stamp (a composeable factory function) for use with stamp-it that creates an immutable deep property called config storing information from config with its' cascading configuration capabilities or an override with an arbitary configuration file you provide.
By itself you aren't gaining much, used in combination with other stamps you gain the composeable power to add the consistent config interface of the config module in an expected way.
You can find detailed instructions on using config on the node-config wiki pages;
You need a configuration file, either an arbitrary file or in your Env config folder per config.
For loading up an arbitrary single config file:
// for a config file in the following path {thepathWherethisCodeExecutes}/test/config.json
// with the following config
// {"item1": "test"}
const path = require('path');
// Factory Function.
const ConfigPropertyStamp = require('config-property-stamp');
const configPropertyStamp = ConfigPropertyStamp.create(path.join(__dirname, 'test', 'default.json'));
// configPropertyStamp is {item1: test}
// for a config file in the following path in your module config/default.json
// with the following config
// {"item1": "test2"}
const path = require('path');
const ConfigPropertyStamp = require('config-property-stamp');
// Looks for config in /config and cascades it all together.
const configPropertyStamp = ConfigPropertyStamp.create();
// configPropertyStamp is {item1: test2}
FAQs
A stamp that uses config to read configuration into a stamp property.
The npm package config-property-stamp receives a total of 5 weekly downloads. As such, config-property-stamp popularity was classified as not popular.
We found that config-property-stamp 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
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.