UNPKG

can-symlink

Version:

Utility module to determine if fs.symlink commands will succeed. Useful for win32 enviornments where special permission is required for symlinking.

8 lines (7 loc) 235 B
#!/usr/bin/env node var canSymlink = require('./'); if (canSymlink()) { console.log('Able to create symlinks.'); } else { console.log('Unable to create symlinks! Make sure your shell is running with the appropriate permissions.'); }