font-awesome-base64
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "font-awesome-base64", | ||
"description": "Font Awesome icons compiled with base64 embedded font to CSS instead of link to font files.", | ||
"version": "1.0.3", | ||
"description": "Font Awesome icons compiled with base64 embedded font to CSS instead of link to font files", | ||
"version": "1.0.4", | ||
"main": "index.css", | ||
@@ -17,9 +17,11 @@ "repository": "git@gitlab.com:tecnos/font-awesome-base64.git", | ||
"font-awesome": "^4.7.0", | ||
"js-yaml": "^3.9.0", | ||
"less": "^2.7.2", | ||
"less-plugin-clean-css": "^1.5.1", | ||
"node-yaml": "^3.1.0" | ||
"request": "^2.81.0" | ||
}, | ||
"scripts": { | ||
"start": "node src/list.js && lessc --no-ie-compat --clean-css src/index.less index.css" | ||
"build": "yarn && node src/list.js && yarn compile", | ||
"compile": "lessc --no-ie-compat --clean-css src/index.less index.css" | ||
} | ||
} |
@@ -7,3 +7,3 @@ # font-awesome-base64 | ||
This compilation uses the original LESS from font-awesome package and a little custom hack to replace `@font-face` settings and embed font with `data-uri`. | ||
This compilation uses original LESS from font-awesome package and a little custom hack to replace `@font-face` settings and embed font with `data-uri`. | ||
@@ -36,4 +36,6 @@ Only WOFF fonts are included to minify the compiled CSS at most as possible and because WOFF is basically OTF/TTF with metadata and compression supported by all major browsers. | ||
### Bower | ||
## Files | ||
`bower i -S font-awesome-base64` | ||
If you download the package using NPM or Yarn, you need to use `index.css` file. | ||
It also includes an `index.json` file containing a list of all icons available. |
const fs = require('fs'), | ||
https = require('https'), | ||
yml = require('node-yaml'), | ||
src = __dirname.replace('src', 'index.yml'), | ||
dest = src.replace('yml', 'json'), | ||
request = require('request'), | ||
yml = require('js-yaml'), | ||
dest = __dirname.replace('src', 'index.json'), | ||
fa = 'https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/src/icons.yml' | ||
https.get(fa, resp => { | ||
resp.once('end', () => { | ||
yml.read(src, (e, list) => { | ||
const json = JSON.stringify(list.icons) | ||
fs.writeFile(dest, json, e => console.log('end', e)) | ||
}) | ||
}) | ||
resp.pipe(fs.createWriteStream(src)) | ||
request.get(fa, (e, resp, body) => { | ||
const list = yml.safeLoad(body), | ||
json = JSON.stringify(list.icons) | ||
fs.writeFile(dest, json, e => console.log('end', e)) | ||
}) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
12
40
0
270265
5
33