Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
bristol-config
Advanced tools
Adds node-config
compatibility for Bristol logging. Not all features from
Bristol are reproduced in the configuration. Currently excluded are:
If you need any of these features implemented, please open an issue, submit a pull request, or get in contact with me.
npm install bristol-config
npm install bristol
Note that bristol
0.3.x is a peer dependency of bristol-config
and must be installed in your project for
everything to work. If you're using an older version of npm
, then bristol
may be installed automatically. Otherwise
you'll receive an npm
notification indicating that you have a missing peer dependency.
Sample node-config
configuration:
{
"logging": {
"severity": "debug",
"targets": [
{
"type": "console"
},
{
"severity": "error",
"type": {
"name": "file",
"options": {
"file": "/var/log/bitscoop/metric-server.log"
}
}
},
{
"severity": "info",
"type": {
"module": "my-target-module-constructor",
"options": {
"option": "value"
}
}
},
{
"type": {
"module": "my-target-module-function",
"constructor": false,
"options": {
"option": "value"
}
}
}
]
}
Usage:
var bristolConf = require('bristol-config');
var config = require('config'); // Requires node-config to function as indicated.
logger = bristolConf(config.logging);
FAQs
Integration for Bristol logging and node-config configuration.
We found that bristol-config 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.