@ton/ton
Version:
[](https://www.npmjs.com/package/ton)
23 lines (22 loc) • 579 B
JavaScript
;
/**
* Copyright (c) Whales Corp.
* All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.toUrlSafe = toUrlSafe;
function toUrlSafe(src) {
while (src.indexOf('/') >= 0) {
src = src.replace('/', '_');
}
while (src.indexOf('+') >= 0) {
src = src.replace('+', '-');
}
while (src.indexOf('=') >= 0) {
src = src.replace('=', '');
}
return src;
}