Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/release_up/deps.ts>ini.safe

🌱 Automate releases
Go to Latest
function ini.safe
import { ini } from "https://deno.land/x/release_up@0.5.0/deps.ts";
const { safe } = ini;

Escapes the string val such that it is safe to be used as a key or value in an ini-file. Basically escapes quotes. For example:

ini.safe('"unsafe string"')

would result in

"\"unsafe string\""

Parameters

val: string | any

String to escape