@helios-lang/codec-utils
Advanced tools
Comparing version 0.1.31 to 0.1.32
{ | ||
"name": "@helios-lang/codec-utils", | ||
"version": "0.1.31", | ||
"version": "0.1.32", | ||
"description": "Primitive manipulation functions commonly used in encoding and decoding algorithms", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
export { decodeUtf8, encodeUtf8, isValidUtf8 } from "./utf8.js" | ||
export { removeWhitespace } from "./whitespace.js" | ||
export { removeWhitespace, replaceTabs } from "./whitespace.js" | ||
export { StringWriter } from "./StringWriter.js" |
@@ -8,1 +8,11 @@ /** | ||
} | ||
/** | ||
* Replaces the tab characters of a string with spaces | ||
* @param {string} str | ||
* @param {string} tab | ||
* @returns {string} | ||
*/ | ||
export function replaceTabs(str, tab = " ") { | ||
return str.replace(new RegExp("\t", "g"), tab) | ||
} |
@@ -1,4 +0,4 @@ | ||
export { removeWhitespace } from "./whitespace.js"; | ||
export { StringWriter } from "./StringWriter.js"; | ||
export { decodeUtf8, encodeUtf8, isValidUtf8 } from "./utf8.js"; | ||
export { removeWhitespace, replaceTabs } from "./whitespace.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,2 +6,9 @@ /** | ||
export function removeWhitespace(str: string): string; | ||
/** | ||
* Replaces the tab characters of a string with spaces | ||
* @param {string} str | ||
* @param {string} tab | ||
* @returns {string} | ||
*/ | ||
export function replaceTabs(str: string, tab?: string): string; | ||
//# sourceMappingURL=whitespace.d.ts.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79728
2428