Socket
Book a DemoInstallSign in
Socket

cs.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cs.js

CS algorithms and data structures in JavaScript

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Build Status Coverage Status

cs.js

CS algorithms and data structures in JavaScript

Installation

npm install cs.js

Usage

The only data structure that is available right now is Stack. Avaiable methods are clear(), isEmpty(), peek(), push(), size(), toString(). More will added in time.

// es5
const Stack = require('cs.js')

// es6
import Stack from 'cs.js'

const stack = new Stack()
stack.isEmpty() // will return true

Tests

npm test

Contributing

Pull requests are welcome! Please make sure that any new or changed functionality need to have unit tests accompanied with the PR. Make sure that you lint (npm run lint) and test your code (npm test).

Keywords

CS

FAQs

Package last updated on 18 Jun 2017

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