mocha test.js
// node.js
var fixWidth = require('fixwidth')
fixWidth(2017,2) //=> "17"
fixWidth(8,2) //=> "08"
// browser copy the function 'fixwidth' anywhere you want
// or ๐
<script src="dist/fixwidth.js"></script>
var fixWidth = require('fixwidth')