Ensure your string ends with a slash
$ npm install ensure-slash
const ensureSlash = require('ensure-slash')
ensureSlash('/home/foo')
// => '/home/foo/'
ensureSlash('/home/bar/')
// => '/home/bar/'
This project follows Semantic Versioning 2.
- v1.0.0 (2017-08-19): Fully commit to Semantic Versioning
- v0.1.0 (2017-07-13): Initial release