github-ssh-keys
fetch ssh keys for given usernames from github
Last updated 5 years ago by peerigon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install github-ssh-keys 
SYNC missed versions from official npm registry.

github-ssh-keys

fetch ssh keys from github for a given username

Build Status Dependency Status

Usage (cli)

Use github-ssh-keys to fetch users ssh public keys from github.

$ github-ssh-keys flootr meaku

--format

If you use the --format flag you are able to auto format keys to fit in a authorized-keys file.

$ github-ssh-keys --format flootr meaku jhnns >> authorized_keys

Library (API)

var fetchKeys = require('git-fetch-ssh');
var username = 'flootr';

fetchKeys(username)
    .then(console.log)
    .catch(console.error);

Or, if you want to fetch the keys for more than one user.

var users = ['jhnns', 'meaku', 'topa', 'matthaias', 'sbat', 'flootr'];

Promise.all(users.map(fetchKeys))
    .then(console.log)
    .catch(console.error);

Current Tags

  • 0.1.2                                ...           latest (5 years ago)

7 Versions

  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |