GithubHelp home page GithubHelp logo

typescript-algorithms's Introduction

Algorithms written in TypeScript
Install Libraries
  • Install TypeScript globally: npm install -g typescript

  • Install TS Node globally: npm install -g ts-node

  • Install TypeScript locally: npm install -D typescript

  • Install TS Node locally: npm install -D ts-node

  • Install FlatMap: npm i array.prototype.flatmap and npm install --save array.prototype.flatmap

  • Install from: npm i array.from

  • Install range: npm i array-range and import: var range = require('array-range')

  • Install Collections: npm install --save collections

  • Install streams: npm install --save sequency and import: const Stream = require('stream')

  • String operations: npm i typescript-string-operations

  • logger: npm i js-logger

  • streams: npm i ts-stream and then npm install --save ts-stream

  • Typescript EVAL: npm i ts-node

  • Immutable data structure: npm install immutable or npm install mori

Check Version
  • tsc -v
Run Programs
  • First run typescript: tsc filename.ts

  • Then run using node: node filename.js

  • Run typescript and node: tsc filename.ts | node filename.js

  • Run using ts-node: ts-node filename.ts

Auto indent
  • mac: Shift + Option + F
  • windows: Shift + Alt + F

typescript-algorithms's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.