
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Package that houses various sorting algorithms for the consumption of engineers who do not want to go through the stress of writing their own sorting algorithms from scratch.
All available algorithms are usable as methods of this package.
Firstly, install sortr. npm install sortrjs
You can hence import sortr into your codebase.
const sortr = require('sortrjs').default;
// to use Merge Sort for example, you can write it as follows
const sortedArray = sortr.merge.sort([43, 12, 54, 1, 3, 2, 98])
console.log(sortedArray) // [1, 2, 3, 12, 43, 54, 98]
Part of the major goals of this project apart from makeing algorithms accessible, is to encourage beginners and first-timers to contribute to open source projects.
Below are the guidelines for
Read this step by step guide to get your code into this repository
Pick a sorting algorithm you would like to add, make sure no one has written it.
Create a new file in the src directory <SORTING_ALGORITHM_NAME>/index.js. Eg. quick/index.js make sure the sorting algorithm hasn't been written already
create a new file to write your tests <SORTING_ALGORITHM_NAME>.spec.js e.g quick.test.js
I wrote bubble/index.js and bubble.spec.js feel free to use it as a template
FAQs
This is a package for all sorting algorithms in javascript.
The npm package sortrjs receives a total of 4 weekly downloads. As such, sortrjs popularity was classified as not popular.
We found that sortrjs 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

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.