Skip to content

Instantly share code, notes, and snippets.

@blowery
Created January 9, 2019 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blowery/0b39fd338e2f15c0d8d351f13a5a153e to your computer and use it in GitHub Desktop.
Save blowery/0b39fd338e2f15c0d8d351f13a5a153e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Play</title>
</head>
<body>
<div id="foo">PANTS</div>
<script>
const t = require('textfit');
textfit( document.queryElementById( 'foo' ) );
</script>
</body>
</html>
{
"name": "play",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"textfit": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/textfit/-/textfit-2.3.1.tgz",
"integrity": "sha1-WJbbSOpwp2e5enPyhVZAaHXKII8="
}
}
}
{
"name": "play",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"textfit": "^2.3.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment