Giter Site home page Giter Site logo

cgonzalezvera / functional-programming-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luijar/functional-programming-js

0.0 1.0 0.0 830 KB

Code Samples Functional Programming in JavaScript, Manning 2016

JavaScript 96.93% HTML 1.09% TypeScript 1.98%

functional-programming-js's Introduction

Functional JavaScript Programming

By Luis Atencio

Since this code uses ES6 artifacts, any code meant to run on the browser must be transpiled with either:

  • Babel
  • Traceur

For Node.js users. This code requires:

node --version > 6.3.1

Please begin the project with

$ npm install

to load all of the required functional libraries.

In this repo you will find:

  • All code samples (as runnable unit tests) of code used in chapters
  • JS targeted for browser
  • Functional data types like Optional, Either, Maybe, etc.
  • Access to some JavaScript functional libraries like lodash.js, rxjs, etc.

Running the tests

QUnit

Once QUnit is installed, you can run each test with the QUnit CLI by specifying the chapter number.

$ npm run ch[01-08]

Jest

Additionally, you may also run unit tests using the Jest test runner. Disclaimer: This is not part of the book, but an extra feature courtesy of the JS community :-)

To run all tests:

$ npm test

To run a chapter test:

$ jest ch[01-08]

To run tests in watch mode:

$ jest --watchAll

And for code coverage:

$ npm run cover

functional-programming-js's People

Contributors

cgonzalezvera avatar cstuncsik avatar kitgary avatar luijar avatar npmcdn-to-unpkg-bot avatar

Watchers

 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.