
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
JavaScript array pairing and merging function written in TypeScript with 100% code coverage and strict typing definitions.
npm install array-pair --save
var expect = require("chai").expect;
var pair = require("array-pair");
var names = [ "Bob", "John", "Joe" ];
var ages = [ 43, 28, 21 ];
var merged = pair(names, ages);
expect(merged).to.deep.equals([
[ "Bob", 43 ],
[ "John", 28 ],
[ "Joe", 21 ]
]);
npm run build # Invoke the build process via NPM script proxy.
gulp build # Invoke the build process directly via Gulp.
array-pair uses a combination of mocha and chai for local code tests, and
CircleCI for continuous integration.
array-pair is written in TypeScript, but its tests are written in JavaScript
as this removes dependencies and makes continuous integration much easier. The
disadvantage is that this requires array-pair to be built before it can be
tested.
To test array-pair, run the following npm script:
npm test
The command will invoke the build process and await its completion before
executing the tests. The tests will emit coverage reports and temporary
information to files in the folders .nyc_output/ and coverage/ for upload
to a code coverage manager such as CodeCov.
See the LICENSE file for license information.
FAQs
Pair two arrays, or pair a single array's contents
We found that array-pair 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.