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.
stream-assert
Advanced tools
This library under heavy development. API will significally change, be brave to pull-request your suggestions about it.
var array = require('stream-array');
var assert = require('stream-assert');
array([1, 2, 3])
.pipe(assert.first(1))
.pipe(assert.second(2))
.pipe(assert.nth(2, 3))
.pipe(assert.length(1))
.on('end', console.log);
Builder for asserting stream. Constructed stream will emit error
and end
on wrong assertion about stream with assertion error as first argument.
Verify, that n
object in stream is deepEqual to obj
.
alias to nth(0, obj)
alias to nth(1, obj)
Asserting, that length of stream is equal len
at the end of the stream.
Searches object in stream that deepEqual to obj
.
MIT (c) 2014 Vsevolod Strukchinsky
FAQs
Assertion library for streams
The npm package stream-assert receives a total of 50 weekly downloads. As such, stream-assert popularity was classified as not popular.
We found that stream-assert 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.