UNPKG

cozy-proxy

Version:

Cozy Proxy redirects requests properly to the right application of the Cozy platform depending on given path. It also handles authentication to the Cozy for users and devices.

11 lines (8 loc) 251 B
#!/usr/bin/env node var spawn = require('child_process').spawn; var major = process.versions.node.split('.')[0]; var bcrypt = 'bcrypt@0.8.7'; if (major === '0') { bcrypt = 'bcrypt@0.8.1'; } spawn('npm', ['install', bcrypt], { stdio: 'inherit' });