I hereby claim:
- I am gausnes on github.
- I am gausnes (https://keybase.io/gausnes) on keybase.
- I have a public key whose fingerprint is 194F 38DB D4D2 3A9C 5949 629A 3CF1 A99C 5247 D68A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
if [ "$1" != "install" ]; then | |
echo "Invalid argument ($1), example usage: npm-local install @privaterepo/package ../path/to/package/root" | |
exit -1 | |
elif [ -z "$2" ]; then | |
echo "Invalid argument ($2), example usage: npm-local install @privaterepo/package ../path/to/package/root" | |
exit -1 | |
elif [ -z "$3" ]; then | |
echo "Invalid argument ($3), example usage: npm-local install @privaterepo/package ../path/to/package/root" |
function getByEmail(identifier, callback) { | |
var users = [ | |
{ name: 'John Doe', password: 'thisshouldbeupdated', phone_number: '+12223334444' }, | |
{ name: 'Jane Doe', password: 'thisshouldbeupdated', phone_number: '+98887776666' }, | |
{ name: 'Gray Doe', password: 'thisshouldbeupdated', phone_number: '+45556667777' }, | |
]; | |
const user = users.find(user => user.phone_number === identifier); | |
if(!user) return callback(null); | |
callback(null, user); |