News for hackers. Stuff that matters.
Re:Show HN: Callbaxx.js – A utility library to bring callbac... by jtokoph on Friday October 12, 2018 @03:56PM (#18204247)
So now to get really deep/meta, you'll want to combine with promisify:

    var isTrue = require('callbaxx').isTrue;
    var promisify = require('promisify');
    var promIsTrue = promisify(isTrue);
    
    promIsTrue(true)
      .then(function (res) {
        console.log(res)
      });
      .catch(function (err) {
        console.log(err)
      });
Re:Show HN: Callbaxx.js – A utility library to bring callbac... by leetbulb on Friday October 12, 2018 @06:39PM (#18205225)
We must go deeper!

  const promisify = require('bluebird').promisify
  const from = require('rxjs').from
  const isTrue = require('callbaxx').isTrue

  const isTrueAsync = promisify(isTrue)
  const makeIsTrueSource = val => from(isTrueAsync(val))

  const source = makeIsTrueSource(true)

  source.subscribe(console.log, console.error)
Re:Show HN: Callbaxx.js – A utility library to bring callbac... by z3t4 on Saturday October 13, 2018 @03:58PM (#18209701)
A few more abstractions and it will meet enterprise compliance. Probably need to write it as a Class ...
Re:Show HN: Callbaxx.js – A utility library to bring callbac... by scottmf on Friday October 12, 2018 @05:55PM (#18205007)
Hi! That's definitely an interesting experiment, but it's rather antithetical to the project.

In fact, it might even be broken by future versions of the library.

See issue #7 [1] for a look at why this might not be a good idea.

Thanks anyway!

1. https://github.com/scf4/callbaxx/issues/7

Re:Show HN: Callbaxx.js – A utility library to bring callbac... by jcolella on Friday October 12, 2018 @06:15PM (#18205103)
@jtokoph, maybe this can be put in the examples for the `callbaxx-promise` library that will be surely be created after.