-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgenerate-readme.js
More file actions
43 lines (30 loc) · 838 Bytes
/
Copy pathgenerate-readme.js
File metadata and controls
43 lines (30 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* @file
* Generates the README
*/
const { basename } = require('path');
const glob = require('glob');
const { writeFileSync } = require('fs');
// Generate README
const README = `# Party Everything
This is literally every single emoji done with a
[Cult Of The Party Parrot][1] rainbow interpolator.
## Emoji Table
| shortcode | preview |
|-------------------|-----------|
${glob
.sync('./emoji/*.png')
.map(e => `| :${basename(e, '.png')}: |  |`)
.join('\n')}
## Create your own!
\`\`\`bash
$ npx party-everything input.png output.png
\`\`\`
## Todo
- Improve automatic naming
## Credits
- https://www.npmjs.com/package/emoji-datasource
- https://github.com/github/gemoji
[1]: https://www.cultofthepartyparrot.com
`;
writeFileSync('./README.md', README, 'utf-8');