Skip to content

Instantly share code, notes, and snippets.

@koddsson
Created December 14, 2016 13:21
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 koddsson/41560d5981a24a948db43c187285cd90 to your computer and use it in GitHub Desktop.
Save koddsson/41560d5981a24a948db43c187285cd90 to your computer and use it in GitHub Desktop.
esnextbin sketch
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>ESNextbin Sketch</title>
<!-- put additional styles and scripts here -->
</head>
<body>
<!-- put markup and other contents here -->
</body>
</html>
// write ES2015 code and import modules from npm
// and then press "Execute" to run your program
import leftPad from 'left-pad';
document.body.innerHTML = leftPad(' Batman!', 16, 'NaN');
{
"name": "esnextbin-sketch",
"version": "0.0.0",
"dependencies": {
"left-pad": "1.1.3"
}
}
'use strict';
var _leftPad = require('left-pad');
var _leftPad2 = _interopRequireDefault(_leftPad);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
document.body.innerHTML = (0, _leftPad2.default)(' Batman!', 16, 'NaN'); // write ES2015 code and import modules from npm
// and then press "Execute" to run your program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment