JSPM

ensure-slash

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q10717F
  • License 0BSD

Ensure your string ends with a slash

Package Exports

  • ensure-slash

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ensure-slash) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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