made with esnextbin
Last active
May 10, 2016 06:48
-
-
Save jameshibbard/9e040f0da4932aac5423b8e63ba54aae to your computer and use it in GitHub Desktop.
esnextbin sketch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>ESNextbin Sketch</title> | |
<style> | |
#result{ | |
padding: 25px; | |
background: #d3d3d3; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="result"></div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var leftPad = require('left-pad') | |
var res = document.getElementById("result"); | |
res.innerHTML = leftPad('foo', 5, '-'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "demo", | |
"version": "0.0.0", | |
"dependencies": { | |
"left-pad": "1.1.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var leftPad = require('left-pad'); | |
var res = document.getElementById("result"); | |
res.innerHTML = leftPad('foo', 5, '-'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment