@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
#usage- 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
changelog
0.0.1
first release
0.0.2
update dependencies