an-async

0.1.0 • Public • Published

Checks if the given API is an sync function or not.

Example Usage:

 
var anAsync = require('an-async');
var fs = require('fs');
 
console.log(anAsync(fs.stat)) // Logs true.
 
console.log(anAsync(fs.statSync)) // Logs false.

TODO:

  • Find a better way rather than the nasty R.E. (maybe sync ro async attributes?)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    2

Package Sidebar

Install

npm i an-async

Weekly Downloads

2

Version

0.1.0

License

MIT

Last publish

Collaborators

  • hemanth