arraysorts
v0.0.3
Published
The NPM package for sorting the array using standard algorithms.
Downloads
14
Readme
arraysorts
The NPM package for sorting the array using standard algorithms.
Installation
npm install arraysortsRunning Example File
node example.jsExample Code
var arraysorts = require('arraysorts');
var async = require('async');
var algoName = 'bubble';
async.auto({
fetchSortedArray:function(next){
arr = [23,34,12,4,56,21,4];
arraysorts(arr,algoName,next)}
},function(err,results){
console.log(algoName,"-->",results.fetchSortedArray)
})
Key for Sorting Algorithm
'insertion' for insertionSort
'selection' for selectionSort
'bubble' for bubbleSort
License
This project is licensed under the MIT License - see the LICENSE file for details
