express-humans
Express middleware for generating a humans.txt or responding with an existing file.
Usage
First run npm install express-humans
, 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 :
app.use(humans('./humans.txt'));
API
humans(options)
options
: String
or Object
Development
npm run build
npm test
Credits
Inspired of express-robots.