canifont
Figure out what fonts to use
Last updated 4 years ago by bebraw .
MIT · Original npm · Tarball · package.json
$ cnpm install canifont 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.0.3                                ...           latest (4 years ago)

3 Versions

  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (2)
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |