justjavac / deno_is_absolute

[deprecated] Whether the filepath is a absolute file path.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deno_is_absolute [deprecated]

tag Build Status license

Whether the filepath is a absolute file path.

⚠️ Please Use Deno Standard Library.

import { isAbsolute } from "https://deno.land/std/path/mod.ts";

Usage

import isAbsolute from "https://deno.land/x/is_absolute/mod.ts";

// return true
isAbsolute('/home/foo')
isAbsolute('/home/foo/..')
isAbsolute('/')
isAbsolute('//')
isAbsolute('//foo')
isAbsolute('c:\\')
isAbsolute('c:/')
isAbsolute('c://')
isAbsolute('C:/Users/')
isAbsolute('C:\\Users\\')

// return false
isAbsolute("bar/")
isAbsolute("./baz")
isAbsolute("c")
isAbsolute("c;")
isAbsolute("C:cwd/another")
isAbsolute("C:cwd\\another")
isAbsolute("foo/bar")
isAbsolute("foo\\bar")

License

deno_is_absolute is released under the MIT License. See the bundled LICENSE file for details.

About

[deprecated] Whether the filepath is a absolute file path.

License:MIT License


Languages

Language:TypeScript 100.0%