/express-humans

Express middleware for generating a humans.txt or responding with an existing file.

Primary LanguageJavaScriptMIT LicenseMIT

express-humans

stability-stable Build Status

npm version Known Vulnerabilities dependency status devdependency status build status Code Climate downloads

NPM

Express middleware for generating a humans.txt or responding with an existing file.

Usage

First run :

npm install express-humans (both npm and Yarn locks are supported)

then :

const humans = require('express-humans');
const express = require('express');

const app = express();

app.use(humans({
  team: [
    {
      'Original developer': 'Hayden Bleasel',
      Twitter: '@haydenbleasel'
    }, {
      Maintainer: 'Alexis Paques',
      Github: '@AlexisTM'
    }
  ],
  thanks: [
    'Node',
    'Gulp'
  ],
  site: {
    'Standards': 'HTML5, CSS3',
    'Components': 'jQuery, Normalize.css',
    'Softwares': 'Atom, SublimeText'
  },
  note: 'Built with love by Hayden Bleasel.'
}));

app.listen(3000);

or :

// Using the path of the humans.txt file
app.use(humans('./humans.txt'));

API

humans(options)

Development

npm run build # Or "yarn run build"
npm test # Or "yarn test"

Credits

Inspired of express-robots.

License

MIT


Don't forget to 🌟 Star 🌟 the repo if you like this npm package !
Your feedback is appreciated