Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Prevent sync functions in your node programs after first tick

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 nosync.js
Octocat-spinner-32 package.json
README.md

Want to prevent accidentally calling sync functions?

require("nosync") will clog that drain for you, by making all sync functions throw after the next tick.

This still allows you to do whatever you need to in the setup phase of your program, where synchronous IO is a good thing.

Something went wrong with that request. Please try again.