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

font-service-specifics

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

font-service-specifics

Look up a font’s service vendor, through its delivery URL.

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Font Service Specifics

Look up a font’s service vendor, through its delivery URL.

Getting started

If you’re using Browserify, first install the project:

npm install --save font-service-specifics

Then, require it and do something based on the result.

var fontServiceSpecifics = require('font-service-specifics');

console.log(fontServiceSpecifics('http://fonts.googleapis.com/css?family=Slabo+27px'));
// Returns “Google Fonts”

console.log(fontServiceSpecifics('fonts.typotheque.com'));
// Returns “Typotheque”

If you’re not using a module system, you can also drop in the font-service-specifics.js file with a similar result:

<script src="path/to/font-service-specifics.js"></script>
<script>
var service = fontServiceSpecifics('http://fast.fonts.net/cssapi/7492f661-79f4-4ab2-90f2-6a9eaf984a75.css');

console.log(service);
// Returns “Fonts.com”
</script>

In this case you’ll almost definitely want to include it with whatever other build process you’re using to include font-service-specifics.js in your main JavaScript file. Right now it is way larger (13kb) than it should be (<1kb), which I will be fixing.

License

The MIT License (MIT)

Copyright © 2014 Kenneth Ormandy & Chloi Inc.

Keywords

FAQs

Package last updated on 17 Dec 2014

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