1.0.5 • Published 4 years ago

@bugbearr/escapejsstring v1.0.5

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
4 years ago

escapeJsString

CI Gitpod Ready-to-Code

import escapeJsString from "@bugbearr/escapejsstring";
// var escapeJsString = require("@bugbearr/escapejsstring").default;

// Escape C0 chars and HTML, XML, JavaScript special chars for JavaScript string.
console.log(escapeJsString("\"<Hello,\r\n world!>\"\r\n"));
// Console.out
// \u0022\u003cHello,\r\n world!\u003e\u0022\r\n
1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago