inject-typekit-script-stream
Streamingly inject a Typekit kit script into html. This should probably only be done when prototyping, as the script itself is a non-negligable 0.3MB, where your typical font only weighs 0.01MB.
Installation
$ npm install inject-typekit-script-stream
Usage
const tk = const filed = const http = http
API
tk(opts)
Create a duplex inject stream. Expects a <body>
tag to be present. The
following opts are available:
- kitId: The unique id for your Typekit font kit. You can find this under
kits
-><select kit>
->embed code
.