2.1.1 • Published 7 years ago

humans-generator v2.1.1

Weekly downloads
135
License
MIT
Repository
github
Last release
7 years ago

Humans Generator Build Status

Produces a simple, valid humans.txt to be parsed by web crawlers. Adheres to the specification provided by Humanstxt.org. Requires Node 4+. Installed through NPM with:

npm install humans-generator --save-dev

Simply require the module and execute it with some configuration. It can take for each information a String, an Array, an Object or any combinaison of the 3.

The standard propose your those fields:

  • header: The ASCII art, default is Humans.txt
  • Team: Shoutouts to your squad.
  • Thanks: People you'd like to thank.
  • Site: Technical specifications about your site.
  • Note: Things you'd like to mention.
var humans = require('humans-generator');

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.'
    
    }, function (error, humans) {
    if(error)  console.log(error);
    else console.log(humans.join('\n'));
});

Outputs the following file:

  _   _                                  _        _   
 | | | |_   _ _ __ ___   __ _ _ __  ___ | |___  _| |_ 
 | |_| | | | | '_ ` _ \ / _` | '_ \/ __|| __\ \/ / __|
 |  _  | |_| | | | | | | (_| | | | \__ \| |_ >  <| |_ 
 |_| |_|\__,_|_| |_| |_|\__,_|_| |_|___(_)__/_/\_\\__|
                                                      

/* 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.

If you need an ES5 build for legacy purposes, just require the ES5 file:

var humans = require('humans-generator/es5');

To build the ES5 version:

npm install -g babel-cli
babel --presets es2015 index.js --out-file es5.js
2.1.1

7 years ago

2.1.0

7 years ago

2.0.4

7 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.3.0

8 years ago

1.2.9

8 years ago

1.2.8

9 years ago

1.2.7

9 years ago

1.2.6

9 years ago

1.2.5

9 years ago

1.2.4

9 years ago

1.2.3

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.8

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago