Font Awesome v4.7.0 is a legacy iconic font and CSS framework that provides a suite of 675 pictographic icons for web projects. This specific npm package, `font-awesome`, corresponds to the 4.x series, with `4.7.0` being its final release in October 2016. It renders icons using web fonts and CSS classes (e.g., `fa fa-home`). The 4.x series is now end-of-life and no longer actively maintained. Font Awesome has since evolved into the 5.x, 6.x, and 7.x series, which are distributed under `@fortawesome` scoped npm packages and primarily utilize SVG-based rendering for improved flexibility and performance. Key differentiators of v4 were its simplicity, wide adoption, and vector scalability via fonts. Its release cadence for this package is effectively stopped, as newer versions are under different packages.
npm install font-awesomeVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to include Font Awesome v4.7.0's CSS in a modern JavaScript/TypeScript project using an import statement and then display several icons with standard classes.
For new projects, use `@fortawesome/fontawesome-free` or `@fortawesome/fontawesome-pro` (v5+) packages. For upgrading, refer to Font Awesome's official migration guide for v4 to v5/v6. Consider using `@fortawesome/fontawesome-svg-core` with a v4 shim if a full rewrite is not immediately feasible.
Migrate your project to use `@fortawesome/fontawesome-free` (or Pro) with its React/Vue/Angular components, or use its Web Fonts + CSS or SVG + JS implementations directly.
Always explicitly install `@fortawesome/fontawesome-free` for modern Font Awesome, or specify `font-awesome@4.7.0` if you specifically intend to use the legacy version.
For projects requiring Sass, either downgrade to an older v3.0.x version or manually adapt the CSS/Less files for Sass integration, or consider using community-maintained Sass ports (e.g., `font-awesome-sass` npm package).
Configure your Webpack `module.rules` to include `file-loader` or `url-loader` for font file extensions (e.g., `.eot`, `.ttf`, `.woff`, `.woff2`, `.svg`) and ensure the `publicPath` is correctly set for these assets. Example: `{ test: /\.(woff|woff2|eot|ttf|svg)(\?.*)?$/, use: ['file-loader'] }`.Install `file-loader` (or `url-loader`) and add a rule to your Webpack configuration's `module.rules` to handle various font file extensions, pointing to the `font-awesome/fonts` directory. Example: `{ test: /\.(woff|woff2|eot|ttf|svg)(\?.*)?$/, use: ['file-loader?name=[name].[ext]&outputPath=fonts/'] }`.Verify that your `font-awesome.min.css` file is correctly linked and loaded. For bundlers, ensure font assets are correctly processed by `file-loader` and their output path is accessible. Check browser developer tools for 404 errors on font files. Also, confirm the `font-family` property is correctly set in your CSS to 'FontAwesome'.
Font Awesome v4.7.0 is primarily a CSS and font library and does not expose a global JavaScript API for icon manipulation. Icons are used by applying CSS classes to `<i>` or `<span>` elements directly in HTML. If you need a JavaScript API, consider migrating to Font Awesome v5+ using `@fortawesome/*` packages.
No dependency data recorded yet.