npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

an-async

0.1.0

@hemanth

npmHomeRepoSnykSocket
Downloads:0
$ npm install an-async
DailyWeeklyMonthlyYearly

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?)