https://github.com/rog/rog3r
⚡️ A cool guy.
https://github.com/rog/rog3r
Last synced: over 1 year ago
JSON representation
⚡️ A cool guy.
- Host: GitHub
- URL: https://github.com/rog/rog3r
- Owner: rog
- License: other
- Created: 2016-03-11T04:06:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-10T05:27:47.000Z (about 9 years ago)
- Last Synced: 2025-03-07T12:46:58.974Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/rog3r
- Size: 150 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [rog3r](https://github.com/rog/rog3r)
> API about a cool guy named [`Rogelio Alberto`](https://github.com/rog).
[](https://travis-ci.org/rog/rog3r/builds/128596017)
[](https://david-dm.org/rog/rog3r)
[](https://www.npmjs.org/package/rog3r)
[](https://nodei.co/npm/rog3r/)
## Install
```
npm install rog3r
```
## Usage
```js
// ES6 modules
import rog3r from 'rog3r'
// For CommonJS you need to require the `default` instance
const rog3r = require('rog3r').default
```
###### Get Contact info
Return the content from [`src/me.json`](src/me.json):
```js
console.log(rog3r.info)
/* Return:
{
github: rog,
twitter: rog3r,
...
}
*/
```
###### Get Github activity
Get the github activity from the user specified on: `src/me.json`.
```js
rog3r.githubActivity()
.then( activity => {
console.log(activity)
})
```
### Hey, I'm a cool person too!
You are right, you're a very cool person too, so you can import the `CoolPerson` Class and extend with your own data from `src/me.json` and now you can use the same methods with your own data and build the library.
#### Building
1. Clone the repo: `git clone https://github.com/rog/rog3r.git`
2. Install the dependencies: `cd rog3r && npm install`
3. Use `npm run build` to build the library on the `lib` directory.
- Use `npm run dev` to auto build the library while developing.
- With `npm test` you can run the test.
- With `npm run report` you can see the code coverage.
---
#### [License](LICENSE)
Released under the [Beerware License](LICENSE).


[](https://github.com/rog)