Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-font-awesome

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-font-awesome

Font Awesome wrapper to make serveable from node

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Node Font Awesome

Simple font awesome wrapper to allow serving from node.

API

scssPath: path to scss directory for adding as import path lessPath: path to less directory for adding as import path css: path to font-awesome.css file. fonts: glob path to all files in fonts directory.

Usage

Moving Fonts:

var gulp = require('gulp');
var fontAwesome = require('node-font-awesome');

gulp.task('fonts', function() {
  gulp.src(fontAwesome.fonts)
    .pipe(gulp.dest('./app/fonts'));
});

Adding To SASS Paths

var gulp = require('gulp');
var fontAwesome = require('node-font-awesome');

gulp.task('sass', function () {
  gulp.src('./sass/main.scss')
    .pipe(sass({
      includePaths: [fontAwesome.scssPath]
    }))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest('./app/css'));
});

With Bourbon

var gulp = require('gulp');
var fontAwesome = require('node-font-awesome');
var bourbon = require('node-bourbon')

gulp.task('sass', function () {
  gulp.src('./sass/main.scss')
    .pipe(sass({
      includePaths: bourbon.with(fontAwesome.scssPath)
    }))
    .pipe(sourcemaps.write('./'))
    .pipe(gulp.dest('./app/css'));
});

Keywords

FAQs

Package last updated on 18 Oct 2015

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

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