raszi / node-tmp

Temporary file and directory creator for node.js
MIT License
736 stars 92 forks source link

inline constants to avoid problem with node 6.x #90

Closed algesten closed 8 years ago

algesten commented 8 years ago

On node 6.5.0 I can't find the constants using require('constants'). I can find them using process.binding('constants').os.errno and process.binding('constants').fs.

By inlining the constants, we can be back- and forwards compatible.

algesten commented 8 years ago

I get problems with this