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 · 4y agoSince 2015v4.0.0MIT

Meet the team

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

Languages

View on GitHub →
JavaScript90.9%
TypeScript9.1%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 4y 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 · 4y 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. Languages: JavaScript (90.9%), TypeScript (9.1%). License: MIT. Latest release: v4.0.0 (5y ago). Open PRs: 0, open issues: 1. Last activity: 4y ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, ranyitz, Richienb, SamVerschueren.

·@ofershap

Replace github.com with gitshow.dev