Standard Library for Typescript
npm install std.ts[![Build Status][build-image]][build-url]
[![Version][npm-image]][npm-url]
[![Downloads][npm-downloads-image]][npm-url]
![Maintenance][maintain-image]
[![License][license-image]][license-url]
JavaScript & TypeScript lack of data structures limits the developers' ability
to solve problems; where other data structures would work better with less code
assuring the developer the maximum efficiency provided by the Standard Library.
``bash`
$ npm install --save std.ts
For JavaScript:
`javascript
const Stack = require('std.ts').Stack;
let s = new Stack();
s.push('!');
s.push('world');
s.push('Hello');
while(!s.empty()) {
console.log(s.pop());
}
`
For TypeScript:
`typescript
import {Stack} from 'std.ts';
let s = new Stack
s.push('!');
s.push('world');
s.push('Hello');
while(!s.empty()) {
console.log(s.pop());
}
``
[npm-image]: https://img.shields.io/npm/v/std.ts.svg
[npm-downloads-image]: https://img.shields.io/npm/dm/std.ts.svg
[npm-url]: https://www.npmjs.com/package/std.ts
[build-image]: https://img.shields.io/travis/tslovers/std.ts.svg
[build-url]: https://travis-ci.org/trslovers/std.ts
[license-image]: https://img.shields.io/github/license/tslovers/std.ts.svg
[license-url]: https://github.com/tslovers/std.ts/blob/master/LICENSE
[maintain-image]: https://img.shields.io/maintenance/yes/2018.svg