UNPKG

node-version-call

Version:

Call a function in a specific version of node

8 lines (7 loc) 250 B
/** * Compatibility Layer for Node.js 0.8+ * Local to this package - contains only needed functions. */ import os from 'os'; export function homedir() { return typeof os.homedir === 'function' ? os.homedir() : require('homedir-polyfill')(); }