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

x/yaml_wasm/scripts/deps.ts

WebAssembly module to parse YAML
Latest
import * as yamlWasm from "https://deno.land/x/yaml_wasm@deno-v0.41.0/scripts/deps.ts";

Enums

EndOfLine character enum

Functions

Copy a file or directory. The directory can have contents. Like cp -r. Requires the --allow-read and --alow-write flag.

Copy a file or directory. The directory can have contents. Like cp -r. Requires the --allow-read and --alow-write flag.

Detect the EOL character for string input. returns null if no newline

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. Requires the --allow-read and --alow-write flag.

Ensures that a directory is empty. Deletes directory contents if the directory is not empty. If the directory does not exist, it is created. The directory itself is not deleted. Requires the --allow-read and --alow-write flag.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --alow-write flag.

Ensures that the directory exists. If the directory structure does not exist, it is created. Like mkdir -p. Requires the --allow-read and --alow-write flag.

Ensures that the file exists. If the file that is requested to be created is in directories that do not exist. these directories are created. If the file already exists, it is NOTMODIFIED. Requires the --allow-read and --alow-write flag.

Ensures that the file exists. If the file that is requested to be created is in directories that do not exist, these directories are created. If the file already exists, it is NOT MODIFIED. Requires the --allow-read and --alow-write flag.

Ensures that the hard link exists. If the directory structure does not exist, it is created.

Ensures that the hard link exists. If the directory structure does not exist, it is created.

Ensures that the link exists. If the directory structure does not exist, it is created.

Ensures that the link exists. If the directory structure does not exist, it is created.

Test whether or not the given path exists by checking with the file system

Test whether or not the given path exists by checking with the file system

Expand the glob string from the specified root directory and yield each result as a WalkEntry object.

Synchronous version of expandGlob().

Format the file to the targeted EOL

Moves a file or directory

Moves a file or directory

Read file and output it as a string.

Read file synchronously and output it as a string.

Reads a JSON file and then parses it into an object

Reads a JSON file and then parses it into an object

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.

Same as walk() but uses synchronous ops

Write the string to file.

Write the string to file synchronously.

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

Convert any glob pattern to a JavaScript Regexp object

Generate a regex based on glob pattern and options This was meant to be using the the fs.walk function but can be used anywhere else. Examples:

Test whether the given string is a glob

Like join(), but doesn't collapse "**/.." when globstar is true.

Like normalize(), but doesn't collapse "**/.." when globstar is true.