You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sorting

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sorting

Javascript implementation of popular sorting algorithms

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Sorting

This repo contains Javascript implementation of popular sorting algorithms.

All the implementations work in browser as well as nodejs environments.

API Naming convention

Algorithm implementation is exposed as a functions named after algorithm in camelcasing. For eg: bubble-sort is exposed as bubbleSort

Usage

Below steps outline how it can be used in broser and node.

Browser
  • Every algorithm resides in its own file. So its easy to loacate what you need.
  • Include your choices via script tags.
  • The implementations are exposed as window.sort object. Eg: window.sort.bubbleSort
Node
  • All you need to do is require('sort') and you get an object that contans all implementations.

Keywords

sorting library

FAQs

Package last updated on 10 Jun 2015

Did you know?

Socket

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.

Install

Related posts