ensure-slash

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2
  • 0.1.0
    1

Package Sidebar

Install

npm i ensure-slash

Weekly Downloads

3

Version

1.0.0

License

0BSD

Last publish

Collaborators

  • sonicdoe