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

x/windmill/node_modules/yaml/browser/index.js>CST.createScalarToken

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
function CST.createScalarToken
import { CST } from "https://deno.land/x/windmill@v1.423.1/node_modules/yaml/browser/index.js";
const { createScalarToken } = CST;

Create a new scalar token with value

Values that represent an actual string but may be parsed as a different type should use a type other than 'PLAIN', as this function does not support any schema operations and won't check for such conflicts.

Parameters

value

The string representation of the value, which will have its content properly indented.

context

Comments and whitespace after the end of the value, or after the block scalar header. If undefined, a newline will be added.