Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Last active May 10, 2016 06:48
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 jameshibbard/9e040f0da4932aac5423b8e63ba54aae to your computer and use it in GitHub Desktop.
Save jameshibbard/9e040f0da4932aac5423b8e63ba54aae to your computer and use it in GitHub Desktop.
esnextbin sketch
<!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>
var leftPad = require('left-pad')
var res = document.getElementById("result");
res.innerHTML = leftPad('foo', 5, '-');
{
"name": "demo",
"version": "0.0.0",
"dependencies": {
"left-pad": "1.1.0"
}
}
'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