-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NPM package to simplify usage (#1)
* Add NPM package to simplify usage Add a simple NPM package for usage. * Add private * Set private package and add gitignore
- Loading branch information
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var Rx = require('rx'); | ||
|
||
|
||
// Ex 1 | ||
var ex1 = Rx.Observable.of(1, 4, 9, 16, 25); | ||
|
||
ex1.subscribe(function onNext(x){ console.log("Next:", x);}) | ||
|
||
// Ex 2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "intro_exercices", | ||
"version": "1.0.0", | ||
"description": "First session exercices", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"rx" | ||
], | ||
"author": "Yannick Heinrich", | ||
"license": "MIT", | ||
"dependencies": { | ||
"rx": "^4.1.0" | ||
}, | ||
"private": true | ||
} |