All Projects → jonschlinkert → is-relative

jonschlinkert / is-relative

Licence: MIT License
Returns `true` if a file path appears to be relative. Moved from the "relative" lib.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to is-relative

is-valid-glob
Return true if a value is a valid glob pattern string, or array of glob patterns.
Stars: ✭ 21 (+61.54%)
Mutual labels:  path, filepath
relative
Easily calculate the relative path from file A to file B in Node.js project. Will calculate correctly from a file to a directory, file to file, directory to file, and directory to directory.
Stars: ✭ 34 (+161.54%)
Mutual labels:  path, relative
global-prefix
Get the npm global path prefix. Same code used internally by npm.
Stars: ✭ 27 (+107.69%)
Mutual labels:  path, filepath
relative.time.parser
Moment.js Plugin for parsing Relative Time Strings
Stars: ✭ 13 (+0%)
Mutual labels:  relative
moonwalk
Walk the working directory towards the root recursively
Stars: ✭ 16 (+23.08%)
Mutual labels:  filepath
file-icon-cli
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 73 (+461.54%)
Mutual labels:  path
relative-path
Portable relative UTF-8 paths for Rust.
Stars: ✭ 54 (+315.38%)
Mutual labels:  path
groupoid.space
🧊 Інститут Формальної Математики
Stars: ✭ 35 (+169.23%)
Mutual labels:  path
BezierKit
Bezier curves and paths in Swift for building vector applications
Stars: ✭ 190 (+1361.54%)
Mutual labels:  path
get-bin-path
Get the current package's binary path
Stars: ✭ 25 (+92.31%)
Mutual labels:  path
plugins
Elder.js plugins and community plugins.
Stars: ✭ 80 (+515.38%)
Mutual labels:  path
XRadarView
A highly customizable radar view for Android
Stars: ✭ 106 (+715.38%)
Mutual labels:  path
llvm-epp
Efficient Path Profiling using LLVM
Stars: ✭ 16 (+23.08%)
Mutual labels:  path
svg-path-bbox
SVG paths bounding box calculator
Stars: ✭ 17 (+30.77%)
Mutual labels:  path
path-absolutize
A library for extending `Path` and `PathBuf` in order to get an absolute path and remove the containing dots.
Stars: ✭ 37 (+184.62%)
Mutual labels:  path
monopati
Well-typed paths
Stars: ✭ 20 (+53.85%)
Mutual labels:  path
STPathTextField
Subclass of NSTextField that supports shell and browser-style path autocompletion
Stars: ✭ 17 (+30.77%)
Mutual labels:  path
requireg
Resolve and require local & global modules in node.js like a boss
Stars: ✭ 45 (+246.15%)
Mutual labels:  path
readdir
Recursively read a directory, blazing fast. Use with picomatch or micromatch to match globs.
Stars: ✭ 37 (+184.62%)
Mutual labels:  path
path-that-svg
Path that SVG!
Stars: ✭ 45 (+246.15%)
Mutual labels:  path

is-relative NPM version NPM monthly downloads NPM total downloads Linux Build Status

Returns true if the path appears to be relative.

Install

Install with npm:

$ npm install --save is-relative

Usage

var isRelative = require('is-relative');
console.log(isRelative('README.md'));
//=> true

console.log(isRelative('/User/dev/foo/README.md'));
//=> false

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Contributors

Commits Contributor
13 jonschlinkert
3 shinnn

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.6.0, on July 13, 2017.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].