Socket
Book a DemoInstallSign in
Socket

@websanova/vue-fa

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@websanova/vue-fa

Convert font-awesome svg to vue components.

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
1
Created
Source

Vue FA

Simply utility to convert FontAwesome svg files into single Vue component js files.

https://fontawesome.com

Note: This is still kind of a test. Please feel free to contribute any updates to the css or structure of the template.

Usage

> npm install @websanova/vue-fa

Make sure to include the css file.

@import './node_modules/@websanova/vue-fa/css/style.css'

Include the icons you need.

Vue.component('ico-user', require('@websanova/vue-fa/js/user.js'));
Vue.component('ico-spinner', require('@websanova/vue-fa/js/spinner.js'));

Class Options

<ico-spinner class="lg x2 x3 x4 x5 fw spin" />

Examples

Combine any of the options just like with FontAwesome.

<ico-user class="lg" />
<ico-lock class="x2 fw" />
<ico-spinner class="spin" />

Or just apply your own classes.

<ico-facebook class="text-facebook" />

Updating Files

  • Dump any svg files to convert into the svg folder.
  • Run npm run build.
  • Commit and push.

License

This is just a simple little Vue wrapper utility for the FontAwesome svg files.

I in know way own these files. If you have licensing issues check with FontAwesome.

FontAwesome License

Keywords

vue

FAQs

Package last updated on 22 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts