Skip to content

Commit fe63b3d

Browse files
author
wenli.lw
committed
add examples
1 parent 4a6ccba commit fe63b3d

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

examples.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# FIRE LISt
2+
3+
> node-fire just a runner for these node_modules without cli.
4+
5+
## Examples
6+
7+
8+
1. [mathjs](https://github.com/josdejong/mathjs)
9+
10+
```
11+
$ npm install mathjs
12+
$ fire mathjs add 5.1 5.2
13+
```
14+
15+
2. [node-open](https://github.com/pwnall/node-open)
16+
17+
```
18+
$ npm install open
19+
$ fire open index.html
20+
$ fire open http://127.0.0.1
21+
```
22+
23+
24+
## Support List
25+
26+
* [shelljs](https://github.com/shelljs/shelljs)
27+
* [mathjs](https://github.com/josdejong/mathjs)
28+
* [node-open](https://github.com/pwnall/node-open)
29+
* [public-ip](https://github.com/sindresorhus/public-ip) fire public-ip v4
30+
* [cpy](https://github.com/sindresorhus/cpy) fire cpy ...1.html,2.html
31+
* [find-up](https://github.com/sindresorhus/find-up) fire find-up 1.html
32+
* [md5] fire md5 test
33+
* [sha1] fire sha1 test
34+
* [uuid] fire uuid

test/pipe.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const test = require('ava')
2+
const exec = require('./_exec')
3+
test('calc', (t) => {
4+
t.is(exec('< examples/calc.js add 3 4'), '7')
5+
t.is(exec('< examples/calc.js multiply 3 4'), '12')
6+
t.is(exec('< examples/calc.js pow 3'), '9')
7+
t.is(exec('< examples/calc.js div 8 0 --b 2'), '4')
8+
})

0 commit comments

Comments
 (0)