codechallenge
v1.0.3
Published
ES6 module containing code examples, solutions to puzzles, etc., reusable in projects as importable classes.
Downloads
4
Readme
Code Challenge
Code Examples with NodeJS and Babel
This project is consumable via EITHER github.com or via NPM.
Node / NPM Installation
- Install the latest version of Node from the Node.js website
Github instructions
- Clone this repo to your computer:
git clone [email protected]:JoeCostanzo/codechallenge.git
- Change directory into the project:
cd codechallenge
- Install the project:
npm install
(will install babel tools such asbabel-cli
, etc)
Run examples
babel-node [desired file]
(e.g.babel-node src/pascalsTriangle.js
)
NPM instructions
- Install the module into your project via npm:
npm install codechallenge
- Import as a normal package and access it's exported members.
import * as challenge from 'codechallenge'; // ES 'next' syntax
var challenge = require('codechallenge'); // pre-ES6 syntax
console.log(challenge.katas); // etc.