Giter Club home page Giter Club logo

font-avaiable's Introduction

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 :)

font-avaiable's People

Contributors

joaopjt avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.