Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
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
  1. Every algorithm resides in its own file. So its easy to loacate what you need.
  2. Include your choices via script tags.
  3. The implementations are exposed as window.sort object. Eg: window.sort.bubbleSort
Node
  1. All you need to do is require('sort') and you get an object that contans all implementations.

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc