
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
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
The npm package array-pair receives a total of 8 weekly downloads. As such, array-pair popularity was classified as not popular.
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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.