there's already a `pad` module on npm