https://github.com/gavinning/vgo
用于注册在特定情况下才会执行的任务
https://github.com/gavinning/vgo
Last synced: over 1 year ago
JSON representation
用于注册在特定情况下才会执行的任务
- Host: GitHub
- URL: https://github.com/gavinning/vgo
- Owner: gavinning
- Created: 2016-08-23T09:55:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-23T09:58:48.000Z (almost 10 years ago)
- Last Synced: 2025-03-05T02:08:24.506Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
vgo
---
用于注册在特定情况下才会执行的任务
### Install
```sh
npm i vgo --save
```
### Usage
```js
var Go = require('vgo');
var go = new Go;
```
```js
go.task('t1', path.join(__dirname, '../test/task'))
go.task('t1', function(arg){
console.log(arg)
})
go.now('t1', {b:1})
```