Skip to content

Instantly share code, notes, and snippets.

@Granze
Created November 19, 2014 15:53
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 Granze/4b8ff96779404e6f0a7e to your computer and use it in GitHub Desktop.
Save Granze/4b8ff96779404e6f0a7e to your computer and use it in GitHub Desktop.
requirebin sketch
var fraktur = require('fraktur');
console.log(fraktur("Fraktur is cool!"));
require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){module.exports={A:"๐”„",B:"๐”…",C:"๐•ฎ",D:"๐”‡",E:"๐”ˆ",F:"๐”‰",G:"๐”Š",H:"๐•ณ",I:"๐•ด",J:"๐”",K:"๐”Ž",L:"๐”",M:"๐”",N:"๐”‘",O:"๐”’",P:"๐”“",Q:"๐””",R:"๐•ฝ",S:"๐”–",T:"๐”—",U:"๐”˜",V:"๐”™",W:"๐”š",X:"๐”›",Y:"๐”œ",Z:"๐–…",a:"๐”ž",b:"๐”Ÿ",c:"๐” ",d:"๐”ก",e:"๐”ข",f:"๐”ฃ",g:"๐”ค",h:"๐”ฅ",i:"๐”ฆ",j:"๐”ง",k:"๐”จ",l:"๐”ฉ",m:"๐”ช",n:"๐”ซ",o:"๐”ฌ",p:"๐”ญ",q:"๐”ฎ",r:"๐”ฏ",s:"๐”ฐ",t:"๐”ฑ",u:"๐”ฒ",v:"๐”ณ",w:"๐”ด",x:"๐”ต",y:"๐”ถ",z:"๐”ท"}},{}],fraktur:[function(require,module,exports){var data=require("./data.json");module.exports=function(str){return str.replace(/[A-Za-z]/g,function(s){return data[s]})}},{"./data.json":1}]},{},[]);var fraktur=require("fraktur");console.log(fraktur("Fraktur is cool!"));
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"fraktur": "1.0.0"
}
}
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment