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

font-avaiable

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-avaiable

Lightweight function for verify if a font is avaiable on client.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Font Avaiable

⚡ Lightweight code to verify if a font is avaiable on client browser

Getting Started

Download the script file clicking here

OR

Install package via npm:

npm install font-avaiable

Creating instance

<script src="fontavaiable.min.js"></script> // Import downloaded script file
<script type="text/javascript">
  console.log(fontAvaiable('Arial')); // true
</script>

You can import the module with ES6 syntax too:

// const isFontAvaiable = require('font-avaiable');
import isFontAvaiable from 'font-avaiable';

isFontAvaiable('Comic Sans MS'); // Return `true` if font is avaiable.

Contribute

In first of all, fork the repo.

After clone the fork, make sure of use node v6.11.4. Install the dependencies, and rollup globally. To build files, use the rollup -c or npm run build/yarn build.

Then, make a pull request with a nice description of changes.

License

MIT License.

Made with ❤️ by

Be part of this list too, contribute with us :)

Keywords

FAQs

Package last updated on 31 Jan 2022

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