Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/justjavac/deno_is_absolute
[deprecated] Whether the filepath is a absolute file path.
https://github.com/justjavac/deno_is_absolute
deno deno-mod deno-module deno-modules filesystem path
Last synced: 18 days ago
JSON representation
[deprecated] Whether the filepath is a absolute file path.
- Host: GitHub
- URL: https://github.com/justjavac/deno_is_absolute
- Owner: justjavac
- License: mit
- Created: 2020-08-24T02:58:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T03:04:56.000Z (about 4 years ago)
- Last Synced: 2024-10-06T01:22:15.825Z (about 1 month ago)
- Topics: deno, deno-mod, deno-module, deno-modules, filesystem, path
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_is_absolute [deprecated]
[![tag](https://img.shields.io/github/release/justjavac/deno_is_absolute)](https://github.com/justjavac/deno_is_absolute/releases)
[![Build Status](https://github.com/justjavac/deno_is_absolute/workflows/ci/badge.svg?branch=master)](https://github.com/justjavac/deno_is_absolute/actions)
[![license](https://img.shields.io/github/license/justjavac/deno_is_absolute)](https://github.com/justjavac/deno_is_absolute/blob/master/LICENSE)Whether the filepath is a **absolute** file path.
⚠️ **Please Use Deno Standard Library.**
```ts
import { isAbsolute } from "https://deno.land/std/path/mod.ts";
```## Usage
```ts
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](https://github.com/justjavac/deno_is_absolute) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.