Gathering detailed insights and metrics for is-relative
Gathering detailed insights and metrics for is-relative
Gathering detailed insights and metrics for is-relative
Gathering detailed insights and metrics for is-relative
Returns `true` if a file path appears to be relative. Moved from the "relative" lib.
npm install is-relative
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
14 Stars
22 Commits
1 Forks
4 Watching
1 Branches
3 Contributors
Updated on 19 Jul 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-7.4%
1,257,977
Compared to previous day
Last week
2%
7,244,639
Compared to previous week
Last month
12.8%
29,490,104
Compared to previous month
Last year
8.2%
314,657,851
Compared to previous year
1
2
Returns
true
if the path appears to be relative.
Install with npm:
1$ npm install --save is-relative
1var isRelative = require('is-relative'); 2console.log(isRelative('README.md')); 3//=> true 4 5console.log(isRelative('/User/dev/foo/README.md')); 6//=> false
path.isAbolute
. Returns true if a file path is absolute. | homepagetrue
if the given string looks like a glob pattern or an extglob pattern… more | homepagetrue
if the path appears to be relative. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Commits | Contributor |
---|---|
13 | jonschlinkert |
3 | shinnn |
(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:
1$ npm install -g verbose/verb#dev verb-generate-readme && verb
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:
1$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on July 13, 2017.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More