Skip to content
Permalink
Browse files

Add list of icons

  • Loading branch information...
jxnblk committed Nov 3, 2019
1 parent 379d59d commit f33d970aef40ddb941a5291665f77a221e9000bd
Showing with 1,824 additions and 1 deletion.
  1. +1 −1 README.md
  2. +25 −0 docs.js
  3. +1,797 −0 icons.md
  4. +1 −0 package.json
@@ -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 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.
You can’t perform that action at this time.