Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
winston-array-transport
Advanced tools
write winston logs directly to javascript Array.
There are a lot of cases where you need to parse and analyze your logs. For example, to access them during tests. This package provides transport that allows simply push logs to js array, so you don't need any runtime parsers anymore.
081e4ed03eebef0eda5305a1486a32cf91cdc62b
To use library you need to have node and npm installed in your machine:
>=10
>=6
Package is continuously tested on darwin, linux, win32 platforms. All active and maintenance LTS node releases are supported.
To install the library run the following command
npm i --save winston-array-transport
The package can be used alongside any other winston transport.
import ArrayTransport from 'winston-array-transport';
import { createLogger } from 'winston';
const logs = [];
const transport = new ArrayTransport({ array: logs, json: true, level: 'info' });
export const logger = createLogger({
transports : [ transport ]
});
Next options can be configured while transport creation:
ArrayTransport
by default;os.EOL
by default;true
, JSON.parse
parser will be used;n
last items;Make the changes to the code and tests. Then commit to your branch. Be sure to follow the commit message conventions. Read Contributing Guidelines for details.
081e4ed03eebef0eda5305a1486a32cf91cdc62b
1.1.2 (2021-05-25)
FAQs
write logs to js Array
The npm package winston-array-transport receives a total of 0 weekly downloads. As such, winston-array-transport popularity was classified as not popular.
We found that winston-array-transport 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.