Socket
Socket
Sign inDemoInstall

font-awesome-base64

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-awesome-base64 - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

.gitlab-ci.yml

10

package.json
{
"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"
}
}

8

README.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc