Skip to main content

deno_is_relative

tag Build Status license

Whether the filepath is a relative file path.

Base on jonschlinkert/is-relative

Usage

import isRelative from "https://deno.land/x/is_relative/mod.ts";

// return true
isRelative("foo.txt")
isRelative("./foo.txt")
isRelative("./bar/foo.txt")
isRelative("./bar/foo/")

// return false
isRelative('/User/dev/foo/bar.txt')
isRelative('e://foo/bar.txt')
isRelative('e:/foo/bar.txt')
isRelative('\\User\\foo\\bar.txt')

License

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