Installation
Node.js
npm install super-trailing-slash --save
Example
Add trailing slash
const slash = ; slash; //=> path/to/file/slash; //=> \path\to\file\ // Adds only if necessaryslash; //=> path/to/file/
Remove trailing slash
slash; //=> path/to/fileslash; //=> \path\to\file // Removes only if necessaryslash; //=> path/to/file
API
Changelog
You can view the changelog here
License
super-trailing-slash is open-sourced software licensed under the MIT license