Gathering detailed insights and metrics for @dsherret/to-absolute-glob
Gathering detailed insights and metrics for @dsherret/to-absolute-glob
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
npm install @dsherret/to-absolute-glob
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.4
Supply Chain
99.4
Quality
74
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
72,258,715
Last Day
27,619
Last Week
106,897
Last Month
579,615
Last Year
7,331,791
18 Stars
45 Commits
11 Forks
4 Watching
1 Branches
7 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.2
Package Id
@dsherret/to-absolute-glob@2.0.2
Size
3.35 kB
NPM Version
3.8.8
Node Version
8.5.0
Publised On
07 Mar 2018
Cumulative downloads
Total Downloads
Last day
-15.4%
27,619
Compared to previous day
Last week
-29.8%
106,897
Compared to previous week
Last month
3.4%
579,615
Compared to previous month
Last year
-16%
7,331,791
Compared to previous year
2
2
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Install with npm:
1$ npm install --save to-absolute-glob
1var toAbsGlob = require('to-absolute-glob'); 2toAbsGlob('a/*.js'); 3//=> '/dev/foo/a/*.js'
Given the current project folder (cwd) is /dev/foo/
:
makes a path absolute
1toAbsGlob('a'); 2//=> '/dev/foo/a'
makes a glob absolute
1toAbsGlob('a/*.js');
2//=> '/dev/foo/a/*.js'
retains trailing slashes
1toAbsGlob('a/*/'); 2//=> '/dev/foo/a/*/'
retains trailing slashes with cwd
1toAbsGlob('./fixtures/whatsgoingon/*/', {cwd: __dirname});
2//=> '/dev/foo/'
makes a negative glob absolute
1toAbsGlob('!a/*.js');
2//=> '!/dev/foo/a/*.js'
from a cwd
1toAbsGlob('a/*.js', {cwd: 'foo'});
2//=> '/dev/foo/foo/a/*.js'
makes a negative glob absolute from a cwd
1toAbsGlob('!a/*.js', {cwd: 'foo'});
2//=> '!/dev/foo/foo/a/*.js'
from a root path
1toAbsGlob('/a/*.js', {root: 'baz'});
2//=> '/dev/foo/baz/a/*.js'
from a root slash
1toAbsGlob('/a/*.js', {root: '/'});
2//=> '/dev/foo/a/*.js'
from a negative root path
1toAbsGlob('!/a/*.js', {root: 'baz'});
2//=> '!/dev/foo/baz/a/*.js'
from a negative root slash
1toAbsGlob('!/a/*.js', {root: '/'});
2//=> '!/dev/foo/a/*.js'
true
if an array has a glob pattern. | homepagetrue
if the given string looks like a glob pattern or an extglob pattern… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Commits | Contributor |
---|---|
16 | doowb |
15 | jonschlinkert |
1 | phated |
1 | erikkemperman |
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
1$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
1$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on October 17, 2016.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
Found 3/14 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
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 2025-01-27
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