Skip to content

Ensure your string ends with a slash

License

Notifications You must be signed in to change notification settings

sonicdoe/ensure-slash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ensure-slash Build Status

Ensure your string ends with a slash

Installation

$ npm install ensure-slash

Usage

const ensureSlash = require('ensure-slash')

ensureSlash('/home/foo')
// => '/home/foo/'

ensureSlash('/home/bar/')
// => '/home/bar/'

Changelog

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