JSPM

css-font-face-src

0.2.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20677
  • Score
    100M100P100Q201720F
  • License BSD-2-Clause

A CSS @font-face src property value parser

Package Exports

  • css-font-face-src

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-font-face-src) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

css-font-face-src

NPM version

A CSS @font-face src property value parser.

Example

var parser = require('css-font-face-src');

parser.parse('local("The Font"), url("font.otf") format("opentype"), url("font.woff"), local("Another Font")');

will return

[ { local: 'The Font' },
  { url: 'font.otf', format: 'opentype' },
  { url: 'font.woff' },
  { local: 'Another Font' } ]

Build Status

Author

Christoph Burgmer. Licensed under BSD-2-Clause. Reach out on Twitter.