Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
resolve-glob
Advanced tools
Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
Install with npm:
$ npm i resolve-glob --save
var glob = require('resolve-glob');
See matched for the full range of features and options.
async
glob(['*.js'], function(err, files) {
console.log(files[0])
//=> '/Users/jonschlinkert/dev/resolve-glob/index.js'
});
sync
var files = glob.sync(['*.js']);
console.log(files[0])
//=> '/Users/jonschlinkert/dev/resolve-glob/index.js'
The following characters are expanded to directories with resolve-dir when used as leading characters in options.cwd
:
~
: expanded to the user home directory@
: expanded to global npm modules directorySee resolve-dir for more details.
true
if an array has a glob pattern. | homepagetrue
if the given string looks like a glob pattern or an extglob pattern.… more | homepageInstall dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Jon Schlinkert
Copyright © 2016 Jon Schlinkert Released under the MIT license.
This file was generated by verb on January 06, 2016.
FAQs
Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
We found that resolve-glob demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.