An open API service indexing awesome lists of open source software.

https://github.com/roxasshadow/humanity

Generate humans.txt from given repository's contributors list
https://github.com/roxasshadow/humanity

Last synced: 10 months ago
JSON representation

Generate humans.txt from given repository's contributors list

Awesome Lists containing this project

README

          

humanity [![Build Status](https://travis-ci.org/RoxasShadow/humanity.svg?branch=master)](https://travis-ci.org/RoxasShadow/humanity) [![crates.io](http://meritbadge.herokuapp.com/humanity)](https://crates.io/crates/humanity)
========

Generate [humans.txt](http://humanstxt.org) from given repository's contributors list.

# Usage
To compile *humanity*, [Rust Nightly](https://www.rust-lang.org/downloads.html) is required.

```sh
$ cargo build --release
$ ./target/release/humanity iron/params
```

If the program crashes, it's because GitHub APIs allow you to execute a very low amount of requests.
What you have to do is just generating a new [token](https://github.com/settings/tokens/new) (pick
a name, leave everything unchecked and press "Generate token") and run `export GITHUB_ACCESS_TOKEN=`,
appending the received token.

If you need access to your private repositories, check the "repo" flag for your token.

# Customizations
It's possible to create additional fetchers implenting the `HumanityBearer` trait and also redefining
the output format using a custom implementation of `ToString` for `Humanity` and `User`.

# One last thing
![;_;](https://pbs.twimg.com/media/Cimu_N5XIAESpG4.jpg:large)