Express middleware for generating a humans.txt or responding with an existing file.
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'));
humans(options)
options
:String
orObject
- if
String
: the path of the humans.txt file to serve - if
Object
: thehumans-generator
package config
- if
npm run build # Or "yarn run build"
npm test # Or "yarn test"
Inspired of express-robots.
MIT
Don't forget to 🌟 Star 🌟 the repo if you like this npm package !
Your feedback is appreciated