Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Commit

Permalink
Add list of icons
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed Nov 3, 2019
1 parent 379d59d commit f33d970
Show file tree
Hide file tree
Showing 4 changed files with 1,824 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -41,7 +41,7 @@ https://icon.now.sh/chevron/?strokeWidth=1

## Icons

TK
For a complete list of icons see: <icons.md>


MIT License
25 changes: 25 additions & 0 deletions docs.js
@@ -0,0 +1,25 @@
const fs = require('fs')
const path = require('path')
const keys = require('./lib/keys')

console.log(keys)

let doc = '# Icons\n'

const createLinks = keys => {
keys.forEach(key => {
const url = 'https://icon.now.sh/' + key
doc += `- [![](${url})](${url}) ${url}\n`
})
}

Object.keys(keys).forEach(name => {
doc += `\n## ${name}\n\n`
createLinks(keys[name])
})

console.log(doc)

const filename = path.join(__dirname, 'icons.md')

fs.writeFileSync(filename, doc)

0 comments on commit f33d970

Please sign in to comment.