GitShow/sindresorhus/import-from
sindresorhus

import-from

Import a module like with `require()` but from a given path

by sindresorhus
Star on GitHubForknpm

JavaScript

85 stars8 forks5 contributorsQuiet · 3y agoSince 2015MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus16 contributions
BendingBender
BendingBender1 contribution
ranyitz
ranyitz1 contribution
Richienb
Richienb1 contribution
SamVerschueren
SamVerschueren1 contribution

Commit activity

Last 12 weeks · 0 commits

Full graph →

Recent PRs & issues

Quiet · 1 discussion · Last activity 3y ago
See all on GitHub →
MSE99
ESM supportOpenIssue

Feature request I'm currently working on a tool that uses to invoke node module look up inside different directories, i need es modules support in the future and would really appreciate, it being implemented in this package, thanks.

MSE99 · 2y ago

Recent fixes

View closed PRs →
tjx666
resolved path not rightClosedIssue

cwd: /Users/yutengjing/code/fe-test find module: found: /Users/yutengjing/code/fe-test/node_modules/.pnpm/typescript@3.9.7/node_modules/typescript/lib/typescript.js expect: /Users/yutengjing/code/fe-test/node_modules/typescript/lib/typescript.js

tjx666 · 3y ago
sindresorhus
Use `module.createRequireFromPath()` when availableClosedIssue

Added module.createRequireFromPath(filename). This new method can be used to create a custom require function that will resolve modules relative to the filename path. #19360 \- https://nodejs.org/en/blog/release/v10.12.0/

sindresorhus · 5y ago
Richienb
Move to GitHub ActionsMergedPR
Richienb · 5y ago
Structured data for AI agents

Repository: sindresorhus/import-from. Description: Import a module like with `require()` but from a given path Stars: 85, Forks: 8. Primary language: JavaScript. License: MIT. Open PRs: 0, open issues: 1. Last activity: 3y ago. Top contributors: sindresorhus, BendingBender, ranyitz, Richienb, SamVerschueren.

·@ofershap

Replace github.com with gitshow.dev