How to use @fortawesome/free-regular-svg-icons - 3 common examples

To help you get started, we’ve selected a few @fortawesome/free-regular-svg-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github openstreetmap / iD / build_data.js View on Github external
const path = require('path');
const prettyStringify = require('json-stringify-pretty-compact');
const shell = require('shelljs');
const YAML = require('js-yaml');

const fieldSchema = require('./data/presets/schema/field.json');
const presetSchema = require('./data/presets/schema/preset.json');
const nsi = require('name-suggestion-index');
const deprecated = require('./data/deprecated.json').dataDeprecated;

// fontawesome icons
const fontawesome = require('@fortawesome/fontawesome-svg-core');
const fas = require('@fortawesome/free-solid-svg-icons').fas;
const far = require('@fortawesome/free-regular-svg-icons').far;
const fab = require('@fortawesome/free-brands-svg-icons').fab;
fontawesome.library.add(fas, far, fab);

const request = require('request').defaults({ maxSockets: 1 });

let _currBuild = null;


function buildData() {
  if (_currBuild) return _currBuild;

  const START = '🏗   ' + colors.yellow('Building data...');
  const END = '👍  ' + colors.green('data built');

  console.log('');
  console.log(START);
  console.time(END);
github jacobwgillespie / styled-icons / packages / @styled-icons / fa-regular / source.js View on Github external
module.exports = async () =>
  Object.keys(regular).map(iconKey => {
    const icon = fontawesome.icon(regular[iconKey])
    return {
      originalName: icon.iconName,
      source: icon.html,
      pack: 'fa-regular',
      verticalAlign: '-.125em',
    }
  })
github nezhar / snypy-frontend / src / app / app.module.ts View on Github external
import { PermDirective } from './directives/perm/perm.directive';

library.add(
  fas.faCoffee,
  fas.faCode,
  fas.faSyncAlt,
  fas.faGlobe,
  fas.faEye,
  fas.faEyeSlash,
  fas.faTag,
  fas.faCloudUploadAlt,
  fas.faCloudDownloadAlt,
  fas.faUser,
  fas.faPlus,
  fas.faStar,
  far.faStar,
  fas.faTrash,
  fas.faCircle,
  fas.faHashtag,
);

@NgModule({
  declarations: [
    AppComponent,
    LabelsComponent,
    LanguagesComponent,
    MenuComponent,
    SnippetsComponent,
    SnippetComponent,
    SnippetOptionsComponent,
    FooterComponent,
    HeaderComponent,

@fortawesome/free-regular-svg-icons

The iconic font, CSS, and SVG framework

(CC-BY-4.0 AND MIT)
Latest version published 5 days ago

Package Health Score

90 / 100
Full package analysis