canifont

0.0.3 • Public • Published

canifont - Figure out what fonts to use

const canifont = require('canifont');
const browserslist = require('browserslist');
 
canifont({
  // Parse `browserslist`
  browsers: browserslist(),
 
  // Possible fonts (optional)
  fonts: ['woff2', 'woff', 'svg-fonts', 'ttf']
});
// => ['woff2', 'woff']

There's also a CLI client (canifont) that performs the same.

License

MIT.

Readme

Keywords

none

Package Sidebar

Install

npm i canifont

Weekly Downloads

3

Version

0.0.3

License

MIT

Last publish

Collaborators

  • bebraw