@magic-libraries/replaceSlashSlash

@magic-libraries/replace-slash-slash

@magic-client library.

@magic-libraries/replace-slash-slash replaces

//
in strings with
/
.

installation

npm install --save-exact @magic-libraries/replace-slash-slash

usage

in a page/component, just use the lib.replaceSlashSlash function

replaceSlashSlash

lib.replaceSlashSlash('//path/into//page//')// '/path/into/page/'

source

the source for this page is in the example directory and gets built and published to github using @magic/core