Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stevemao/rit
Run any exported function
https://github.com/stevemao/rit
Last synced: 6 days ago
JSON representation
Run any exported function
- Host: GitHub
- URL: https://github.com/stevemao/rit
- Owner: stevemao
- Created: 2017-05-24T08:44:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T08:46:45.000Z (over 7 years ago)
- Last Synced: 2024-11-14T14:43:32.514Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Say you have `index.js` in your CWD:
```js
module.exports = function() {
console.log('here')
}module.exports.test = function() {
console.log('test')
}module.exports.args = function(args) {
console.log(args)
}
``````
$ rit
here$ rit . test
test$ rit ./ args --test=1
{ test: 1 }$ rit ./index.js args --test=1 --test=2
{ test: [ 1, 2 ] }$ rit ./index.js args --test=1 --test2=2
{ test: 1, test2: 2 }$ rit ./index.js args --test=1 --test2=2 --ya 42
{ test: 1, test2: 2, ya: 42 }
```