export function fmtCPPString(str: string) { return ( '"' + str .replace(/\\/g, "\\\\") .replace(/"/g, '\\"') .replace(/\n/g, "\\n") .replace(/\r/g, "\\r") .replace(/\t/g, "\\t") .replace(/\?/g, "\\?") + // https://stackoverflow.com/questions/1234582 '"' ); } export function cap(str: string) { return str[0].toUpperCase() + str.slice(1); } export function low(str: string) { if (str.startsWith("JS")) { return "js" + str.slice(2); } return str[0].toLowerCase() + str.slice(1); } td>
Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/json-stringify/bun.js (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-08-31insert `enumerable: true` when neededGravatar Dylan Conway 2-11/+120
2023-08-31`bun install` correctly join dependency URLs (#4421)Gravatar Julian 6-64/+243
2023-08-31get name if not provided in `FormData.append` (#4434)Gravatar Dylan Conway 4-5/+45
2023-08-31export non-enumerable valuesGravatar Dylan Conway 2-4/+79
2023-08-31Fix vscode debug terminalGravatar Ashcon Partovi 1-21/+0