authorized-keys
Version:
Platform agnostic path resolution to a user's authorized_keys file Node.js.
41 lines (23 loc) • 1.04 kB
Markdown
# authorized-keys
[](https://travis-ci.org/wilmoore/node-authorized-keys) [](https://www.npmjs.org/package/authorized-keys) [](https://www.npmjs.org/package/authorized-keys) [](license)
> Platform agnostic path resolution to a user's authorized_keys file [Node.js][].
#### OSX
keys();
#=> /Users/wilmoore/.ssh/authorized_keys
keys('git');
#=> /Users/git/.ssh/authorized_keys
#### Windows
keys();
#=> C:\Users\wilmoore\.ssh\authorized_keys
keys('git');
#=> C:\Users\git\.ssh\authorized_keys
#### Linux
keys();
#=> /home/wilmoore/.ssh/authorized_keys
keys('git');
#=> /home/git/.ssh/authorized_keys
## Installation
npm install authorized-keys --save
## License
[MIT](license)
[Node.js]: http://nodejs.org