Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function parseFileMode
import { parseFileMode } from "https://deno.land/std@0.119.0/node/internal/validators.js";

Parse and validate values that will be converted into mode_t (the S_* constants). Only valid numbers and octal strings are allowed. They could be converted to 32-bit unsigned integers or non-negative signed integers in the C++ land, but any value higher than 0o777 will result in platform-specific behaviors.

Parameters

value

Values to be validated

name

Name of the argument

def