Echo JS 0.11.0

<~>

jameswyse 3766 days ago. link 1 point
This is the first I've seen of Cha, so I'll talk about that rather than cha-load. I must say it looks very nice. I love the chaining style and that you're making use of the JS Task specification.

Although it looks like yet another gulp/grunt competitor (without the runner) I could see this being useful as part of a web app to orchestrate complex, re-usable tasks. Have you any plans or thoughts about using it this way?

I often define 'tasks' in my node apps as a way of providing a simple interface to a complex procedure and to increase re-usability. I define tasks for things like sending emails, fetching data from 3rd party APIs, etc.  At the moment I'm using Agenda[1] for this but I've been thinking about this problem for a while and was planning on writing a module for it (possibly with the Task JS spec) but never found the time. Cha looks like it might be capable of this?

To explain what I mean, imagine something like the following to fetch images from twitter tagged #nodejs and store them in mongodb:

  cha()
    .twitter({
      resource: 'search/tweets',
      query: '#nodejs'
    })
    .filter(function(tweet) {
      return tweet.media && tweet.media.length
    })
    .mongodb({
      collection: 'nodejs-photos'
    });

[1] https://github.com/rschmukler/agenda