0.0.1 • Published 7 years ago

cs.js v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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).