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
Returns `true` if the path appears to be relative.
Yaml Parser with additional functionality.
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
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.
Resolve a URI relative to an optional base URI
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.
Let a globally installed package use a locally installed version of itself if available
A tiny (952b), correct, general-purpose, and configurable "exports" and "imports" resolver without file-system reliance
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.
Webpack loader that resolves relative paths in url() statements based on the original source file
Create a deferred promise
Resolve things like Node.js — ponyfill for `import.meta.resolve`
Webpack loader that adjusts source maps
micromark utility to resolve subtokens
A Promise-compatible abstraction that defers resolving/rejecting promises to another closure.
Delay a promise a specified amount of time
Parse, Resolve, and Dereference JSON Schema $ref pointers
Import a module like with `require()` but from a given path
Find a file or directory by walking up parent directories — Zero dependencies
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
Parser for Github, GitLab and Bitbucket issues actions, references and mentions
A fork of `import-meta-resolve` with commonjs + ESM support at the same time, AKA dual package.
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
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Define and resolve aliases for bundle dependencies
Resolve the path of a globally installed module
Create aliases of directories and register custom module paths
Require and resolve global modules like a boss
Resolve the path of a package regardless of it having an entry point
Import a module like with require() but from a given path (for ESM)
a simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias.
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
Recursively resolve JSON pointers and remote authorities.
Promisified setTimeout
Resolve the path to the user's local or global .gitconfig.
Helper for creating "exposed" promise object (with resolve & reject methods).
Brings the node url api layer to whatwg-url class
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
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
Resolve a path by walking parent directories.
Promisified version of node-which
Caching DNS resolve
Fast relative path resolution
babel-plugin-module-resolver resolver for eslint-plugin-import
Fulfill long runinng promises on timeout.
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
Find the closest package.json file
A small and fast library for validating parsing and resolving URIs and IRIs
Aids humans and automation in managing npm audit results
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.
Node's URL module plus relative pathing
A simple promise resolver
Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.
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.
Find an asset in a set of locations
Simplify JsonSchema/Openapi by combining allOf safely
Resolve a symlink's (or junction's) target
ES6 Promise Shim
Collect Node.JS Stream Data Into Catchment: Stream With Promise Property Resolved On Finish.
Get global npm prefix. Respects npmrc configs
Resolve the preferred locale based on the value of an `Accept-Language` HTTP header.
Get the name of a project, from package.json, git config, or basename of the current working directory.
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.
Helps a module find its package.json mothership.
Install Git for Windows by npm.
Resolve relative IRIs to absolute IRIs given a base IRI
Walk up the tree to resolve `tsconfig.json` configuration objects.
Library that resolves AWS Cloudformation templates with exact values
Delay a promise a specified amount of time
Given an url resolve it as fast as possible
Like `Promise.all`, but when all `Promise`s are settled.
Builtins that were extracted from node-browser-resolve on which browserify depends
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.
Replace absolute paths to relative paths for package compilation
Resolve a whole structure of promises
resolve "imports" in package.json
Resolves symbols for dynamic code generated by a JIT via a map file.
Parse, Resolve, and Dereference JSON Schema $ref pointers
A JavaScript extension package for building strong and modern applications.
Resolves @import statements in CSS
Change where a module dependency is resolved/imported from.
For limiting the time to resolve a promise.
PATTERN_KEY_COMPARE implementation
webpack plugin to resolve TypeScript files when importing with js file extension in ESM projects
Extremely light weight way to resolve jsonschema '$ref' references & inheritance: create circular/graphs, fractals from json (browser/coffeescript/javascript).
fork of eslint-import-resolver-babel-root-import that works
Creates a queue of sync or async functions with resolve and reject callback.
Resolve a possibly relative URL agains a source URL
Resolves index.js files with Rollup
Find files or directories by walking up parent directories.
Delay a promise a minimum amount of time
Returns an array of NPM directory paths based on the user's platform and environment.
ES Proposal spec-compliant shim for Promise.withResolvers
Plugin for using import maps in @web/dev-server
> Apply React refs
Custom resolve module content.
Create a Promise which will resolve with the provided value after a timeout.
A GraphQL batching model which groups execution by GraphQL fields.
XMPP connection methods resolution for JavaScript
## What is it?
rollup plugin that represents bundle content as convenient interactive zoomable treemap
Babel plugin to dynamically rewrite the path in require() and ES6 import
Module resolver plugin for Gatsby
Async-rendering & data-fetching for universal React applications
Table resolution utilities
Resolves parts and plugins from a Sanity configuration
a shortstop resolver like path but for node modules
Asynchronous require.resolve() implementation
Resolve the path of a module from the directory where npm is installed
Calculate the relative path from a file's destination path to another directory or file.
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
Resolves AWS credentials (and region) using env, file and IAM strategies
Inside-out promise; lets you call resolve and reject from outside the Promise constructor function.
A file loader plugin for esbuild for `require.resolve` statements.
Recursively resolve templates in an object, string or array.
Turn css @import statements into full urls
[![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
path.relative for generating short require'able paths.
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).
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
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.
like require.resolve() on behalf of bower files asynchronously and synchronously
Utility for returning a list of arrays that contain matching keywords. Useful for filtering package.json files.
Requires a module found relative to given root or working directory.
Human friendly file system utilities for Node.js
Localized and configureable async and sync `requre.resolve()` implementation.
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
Node utility to list packages that are npm linked
CLI for source-map tool
A simple Node behavior import resolution plugin for eslint-plugin-import, supporting module alias, modified to allow for arrays of aliases.
NodeJS hook to resolve `.ts` files when a `.js` file is imported so that --experimental-strip-types works
Resolver for Jest which uses the enhanced-resolve module
Import, export, require path redirect plugin for Babel
Resolve dot notation strings
TypeScript path alias resolver, re-writes JS files with relative paths according to @paths specified in tsconfig
Find the root directory of a Node.js project from a given path
Generates an asynchronous resolver function from a PAC file
Measure the time a promise takes to resolve
Supports tsconfig paths in Parcelv2.
Chmod + Directory Resolver + Shebang Rollup plugins by Harald Rudell
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.
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.
Execute an error-first callback upon resolution or rejection of a promise (and return the promise)
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()`
Allow rollup to resolve local files with any extension
Parse, Resolve, and Dereference JSON Schema $ref pointers
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
delay before run next command
require.resolve for binaries
Shim for `import.meta.resolve`
Resolves aliases with Rollup
Gets the home dir or resolves home directories.
A simple module to auto resolve module paths.
<h3 align="center"> @merger203/expert-invention </h3>
Resolve the path of a module through a sequence of packages
Require a module like `require()` but via a sequence of nested packages
Find the root directory of a `git` repository
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.
Require a module like `require()` but via a sequence of nested packages from the current working directory
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
babel-plugin-root-import resolver for eslint-plugin-import
Create actions that return promises, which are resolved/rejected by a redux saga
resolve like require.resolve() on behalf of files asynchronously and synchronously
Resolve the directory path where npm CLI is installed
Promise related utilities
Resolve version of an installed module.
A path of the currently executed npm CLI
JSON schema validation with a chainable syntax.
Template helper for generating a list of links to the homepages of related GitHub/npm projects.
Resolve or reject only last Promise.
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.
Load plugins for gulp, grunt, assemble, verb any node.js app that needs to load plugins from node_modules or local folders.
Resolve paths to globally installed npm modules using glob patterns. Useful for getting paths to yeoman or Generate generators, etc.
Babel Plugin Root Import ESLint resolver.
returns first successful promise. As in Promise.any() which is not part of the ES6 spec
Skip hoops with promises Edit
Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.
Parse, Resolve, and Dereference JSON Schema $ref pointers
Find The File That Dependency Path Resolves To.
Resolves The Location Of The Package.Json File For The Given Dependency By Traversing The File System Up Starting From Given Path.
Use this to load modules whose location is specified in the `paths` section of `jsconfig.json` when using jest.
URL host resolver for Docker applications
Let a globally installed package use a locally installed version of itself if available
Resolve a deeply nested structure of q-promises into a promise for the whole structure
Offers an enhanced bower support for enhanced-resolve plugin.
Webpack Theme Resolver plugin to resolve files through directory chain with a package fallback at compile time.
Get the absolute path to the yarn global modules directory (globally installed modules).
Normalize a glob pattern by expanding braces, making it absolute and resolving parent directories '..'