detect-file
Detects if a file exists and returns the resolved filepath.
Found 2324 results for resolve filepath
Detects if a file exists and returns the resolved filepath.
Get the relative filepath from path A to path B. Calculates from file-to-directory, file-to-file, directory-to-file, and directory-to-directory.
Attempt to resolve the absolute filepath to a file and verify that it exists.
Resolves a given package if it is installed locally, then tries to resolve it from global registry, using battle-tested [global-modules][] package. Better approach than internal `require.resolve`, so you can trust. You just get absolute filepath to some p
Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)
Resolve a directory that is either local, global or in the user's home directory.
given a filepath return a unique id with serialised info from any package.json file is discovered on the path
Yaml Parser with additional functionality.
Returns `true` if the path appears to be relative.
Find a file or directory by walking up parent directories
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.
resolve like require.resolve() on behalf of files asynchronously and synchronously
Resolve the path of a module like `require.resolve()` but from a given path
`Start a promise chain
Resolve a URI relative to an optional base URI
Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.
Check if a path is inside another path
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
A tiny (952b), correct, general-purpose, and configurable "exports" and "imports" resolver without file-system reliance
Let a globally installed package use a locally installed version of itself if available
Resolve the path of a module like `require.resolve()` but from the current working directory
Get the npm global path prefix.
The directory used by npm for globally installed npm modules.
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Generates an asynchronous resolver function from a PAC file
Enhance ESLint with better support for large scale monorepos
Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
Create a deferred promise
Resolve things like Node.js — ponyfill for `import.meta.resolve`
Webpack loader that resolves relative paths in url() statements based on the original source file
Webpack loader that adjusts source maps
Delay a promise a specified amount of time
A Promise-compatible abstraction that defers resolving/rejecting promises to another closure.
micromark utility to resolve subtokens
Parse, Resolve, and Dereference JSON Schema $ref pointers
Find a file or directory by walking up parent directories — Zero dependencies
Import a module like with `require()` but from a given path
Get the directory of globally installed packages and binaries
Import a module like with `require()` but from the current working directory
Read the closest package.json file
Module resolver plugin for Babel
resolve which handles browser field support in package.json
Resole and parse `tsconfig.json`, replicating to TypeScript's behaviour
A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.
Parser for Github, GitLab and Bitbucket issues actions, references and mentions
Check if a module ID is resolvable with require()
Get installation path where the given package is installed. Works for globally and locally installed packages
Resolve the path of a globally installed module
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Define and resolve aliases for bundle dependencies
Create aliases of directories and register custom module paths
Require and resolve global modules like a boss
Import a module like with require() but from a given path (for ESM)
Resolve the path of a package regardless of it having an entry point
a simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias.
Recursively resolve JSON pointers and remote authorities.
Simple module to add additional directories to the Node module search for top-level app modules
Resolve a relative path against a root path with validation
Promisified setTimeout
Resolve the path to the user's local or global .gitconfig.
Brings the node url api layer to whatwg-url class
Helper for creating "exposed" promise object (with resolve & reject methods).
Finds the first parent directory that contains a given file or directory.
require and resolve modules relative to a path of your choice
Library to help resolve module locations.
A wrapper for the "resolve" module that targets GLSL shaders instead of JavaScript
Parse, Resolve, and Dereference JSON Schema $ref pointers
resolve/normalize a filepath using the cwd as the basepath if relative
Ensures that absolute file paths are always returned from a glob pattern or array of glob patterns.
Reconstruct the original URL used in an HTTP request based on the HTTP request headers
Parse, Resolve, and Dereference JSON Schema $ref pointers
Resolve a path by walking parent directories.
Promisified version of node-which
Fast relative path resolution
babel-plugin-module-resolver resolver for eslint-plugin-import
Fulfill long runinng promises on timeout.
Caching DNS resolve
a webpack plugin that transforms core-js v2 paths to core-js v3 paths
Solidity import url resolver engine
Parse, Resolve, and Dereference JSON Schema $ref pointers
ES 2021 spec-compliant shim for Promise.any
An algorithm for resolving imports in Sass
Caches dns resolutions made with async dns.resolve instead of default sync dns.lookup, refreshes in background
Find the root directory of a Node.js project or npm package
Use the node way to resolve required path to absolute path.
A lightweight Deferred implementation, on top of Promises/A+
Resolves the full path to the bin file of a given package by inspecting the "bin" field in its package.json.
Resolve module path with custom entry point `package.json` field relative to caller file
Waits until the given predicate function returns a truthy value, then resolves
A small and fast library for validating parsing and resolving URIs and IRIs
Find the closest package.json file
Node's URL module plus relative pathing
Core modules for audit-resolve.json file and logic of its processing
Find the path(s) package.json.
Resolve an absolute file path from local directories, local node_modules or global node_modules.
Aids humans and automation in managing npm audit results
Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.
A simple promise resolver
resolve package root and package.json paths , work on node 17 too
A helper function to resolve a module name or path in relation to the specified context and require it.
Simplify JsonSchema/Openapi by combining allOf safely
Find an asset in a set of locations
Get global npm prefix. Respects npmrc configs
Resolve a symlink's (or junction's) target
ES6 Promise Shim
Get the name of a project, from package.json, git config, or basename of the current working directory.
Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.
Collect Node.JS Stream Data Into Catchment: Stream With Promise Property Resolved On Finish.
A Synchronous Promise.resolve. Preserve Sync/Async. Only Go Async If Necessary.
A promise based node resolution library based on enhanced-resolve.
One step closer to your destination.
Resolve relative IRIs to absolute IRIs given a base IRI
Helps a module find its package.json mothership.
Install Git for Windows by npm.
Walk up the tree to resolve `tsconfig.json` configuration objects.
Library that resolves AWS Cloudformation templates with exact values
Like `Promise.all`, but when all `Promise`s are settled.
Delay a promise a specified amount of time
Given an url resolve it as fast as possible
Ensures that module (import-like or `url`) can be resolved to a module on the file system.
Return an array of resolved filepaths for require-able local or named npm modules. Wildcard (glob) patterns may be used.
Builtins that were extracted from node-browser-resolve on which browserify depends
Replace absolute paths to relative paths for package compilation
Resolve a whole structure of promises
resolve "imports" in package.json
Parse, Resolve, and Dereference JSON Schema $ref pointers
Resolves symbols for dynamic code generated by a JIT via a map file.
A JavaScript extension package for building strong and modern applications.
Resolves @import statements in CSS
For limiting the time to resolve a promise.
Change where a module dependency is resolved/imported from.
fork of eslint-import-resolver-babel-root-import that works
Extremely light weight way to resolve jsonschema '$ref' references & inheritance: create circular/graphs, fractals from json (browser/coffeescript/javascript).
PATTERN_KEY_COMPARE implementation
> Apply React refs
webpack plugin to resolve TypeScript files when importing with js file extension in ESM projects
Resolves index.js files with Rollup
Creates a queue of sync or async functions with resolve and reject callback.
Returns an array of NPM directory paths based on the user's platform and environment.
Resolve a possibly relative URL agains a source URL
Delay a promise a minimum amount of time
Find files or directories by walking up parent directories.
Plugin for using import maps in @web/dev-server
Custom resolve module content.
ES Proposal spec-compliant shim for Promise.withResolvers
Create a Promise which will resolve with the provided value after a timeout.
A GraphQL batching model which groups execution by GraphQL fields.
rollup plugin that represents bundle content as convenient interactive zoomable treemap
XMPP connection methods resolution for JavaScript
Babel plugin to dynamically rewrite the path in require() and ES6 import
Table resolution utilities
Module resolver plugin for Gatsby
Async-rendering & data-fetching for universal React applications
Asynchronous require.resolve() implementation
Resolves parts and plugins from a Sanity configuration
a shortstop resolver like path but for node modules
## What is it?
Resolve the path of a module from the directory where npm is installed
Resolves AWS credentials (and region) using env, file and IAM strategies
Fork of axios-cached-dns-resolve in CJS and with type safety. Caches dns resolutions made with async dns.resolve instead of default sync dns.lookup, refreshes in background
Calculate the relative path from a file's destination path to another directory or file.
Turn css @import statements into full urls
A file loader plugin for esbuild for `require.resolve` statements.
Inside-out promise; lets you call resolve and reject from outside the Promise constructor function.
Recursively resolve templates in an object, string or array.
path.relative for generating short require'able paths.
[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im
A tiny library to help with promises you can check and resolve from outside
Wrap `require` in a try/catch block.
React components for [Stripe.js and Elements](https://stripe.com/docs/stripe-js).
Requires a module found relative to given root or working directory.
Vite plugin to handle your resources. For example, to replace occurrences by a regular expression, or resolving paths in cases where the usual tools do not help you, or something else.
The CLI for working with JSON Schema. Covers formatting, linting, testing, and much more for both local development and CI/CD pipelines
Traverse JSON objects through json pointers and dereference JSON schemeas
Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.
Bypass the require cache when requiring a module – works with both node and browserify
A Custom Sass Import Resolver with included support for Node Module Resolution, additional file extensions, and path aliases/path mapping
like require.resolve() on behalf of bower files asynchronously and synchronously
Localized and configureable async and sync `requre.resolve()` implementation.
Resolve dot notation strings
Node utility to list packages that are npm linked
Import, export, require path redirect plugin for Babel
A simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias, modified to allow for arrays of aliases.
Resolver for Jest which uses the enhanced-resolve module
CLI for source-map tool
Find the root directory of a Node.js project from a given path
Generates an asynchronous resolver function from a PAC file
Human friendly file system utilities for Node.js
TypeScript path alias resolver, re-writes JS files with relative paths according to @paths specified in tsconfig
Supports tsconfig paths in Parcelv2.
Measure the time a promise takes to resolve
Preprocessor for Jest that is able to resolve require() statements using webpack aliases.
Light weight JSON Schema $ref resolver. Expands a JSON Schema by resolving `$ref` references from a mapping of definitions. Does not handle remote references. Has comprehensive unit tests and no dependencies.
Chmod + Directory Resolver + Shebang Rollup plugins by Harald Rudell
Allow rollup to resolve local files with any extension
Execute an error-first callback upon resolution or rejection of a promise (and return the promise)
Node.js Javascript/Typescript library for keeping and resolving a given state of CasparCG into commands for casparcg-connection.
Find a file by walking up parent directories
Utils for `generate` generators.
Solves the relative path problem in Node.js by allowing a require call to reference the current package
Returns a promise resolved in the next event loop - think `setImmediate()`
require.resolve for binaries
Returns an array of unique "global" directories based on the user's platform and environment. The resulting paths can be used for doing lookups for generators or other globally installed npm packages. Node.js / JavaScript.
Parse fields from AST (GraphQLResolveInfo) into a JSON tree
Parse, Resolve, and Dereference JSON Schema $ref pointers
delay before run next command
Shim for `import.meta.resolve`
Gets the home dir or resolves home directories.
Resolves aliases with Rollup
A simple module to auto resolve module paths.
<h3 align="center"> @merger203/expert-invention </h3>
Load plugins for gulp, grunt, assemble, verb any node.js app that needs to load plugins from node_modules or local folders.
Find the root directory of a `git` repository
Require a module like `require()` but via a sequence of nested packages
Require a module like `require()` but via a sequence of nested packages from the current working directory
Resolve the path of a module through a sequence of packages
babel-plugin-root-import resolver for eslint-plugin-import
Gives full control over when ES6 promises are resolved by providing an implementation of Promise with behavior controlled by .resolve(result) and .reject(error) methods. Intended for use in unit tests.
Resolve the path of `npm-cli.js` included in the user-installed npm on Windows
Resolve the path of `npm-cli.js` included in the globally installed npm CLI
Create actions that return promises, which are resolved/rejected by a redux saga
resolve like require.resolve() on behalf of files asynchronously and synchronously
Promise related utilities
Resolve the directory path where npm CLI is installed
A path of the currently executed npm CLI
Template helper for generating a list of links to the homepages of related GitHub/npm projects.
JSON schema validation with a chainable syntax.
Resolve or reject only last Promise.
Resolve version of an installed module.
Load a module from either CWD or npm CLI directory
Return an accessor function for retrieving an element from an array-like object.
Display the dependency tree of a certain module based on your yarn.lock file
Resolve modules from any directory.
Webpack Theme Resolver plugin to resolve files through directory chain with a package fallback at compile time.
Resolve paths to globally installed npm modules using glob patterns. Useful for getting paths to yeoman or Generate generators, etc.
returns first successful promise. As in Promise.any() which is not part of the ES6 spec
Skip hoops with promises Edit
Babel Plugin Root Import ESLint resolver.
Find The File That Dependency Path Resolves To.
Parse, Resolve, and Dereference JSON Schema $ref pointers
Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.
Use this to load modules whose location is specified in the `paths` section of `jsconfig.json` when using jest.
Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.
URL host resolver for Docker applications
Resolve a deeply nested structure of q-promises into a promise for the whole structure
Let a globally installed package use a locally installed version of itself if available
Offers an enhanced bower support for enhanced-resolve plugin.
Tangerine is the best Node.js drop-in replacement for dns.promises.Resolver using DNS over HTTPS ("DoH") via undici with built-in retries, timeouts, smart server rotation, AbortControllers, and caching support for multiple backends (with TTL and purge sup
Normalize a glob pattern by expanding braces, making it absolute and resolving parent directories '..'
Resolve a promise or value and all of its embedded promises (key values, elements of array, including nested)