New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

importx

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

importx

Unified tool for importing TypeScript modules at runtime

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
201K
increased by4.09%
Maintainers
1
Weekly downloads
 
Created
Source

importx

npm version npm downloads bundle JSDocs License

Unified tool for importing TypeScript modules at runtime.

Multi-strategies based on the environment:

  • Use native import() for runtimes that support directly importing TypeScript modules (Deno, Bun, or ts-node, tsx CLI).
  • Use tsx for modern module environments.
  • Use jiti for older Node.js that don't support tsx.

Usage

npm i importx
const mod = await import('importx').then(x => x.import('./path/to/module.ts', import.meta.url))

Loaders

auto

native

tsx

bundle-require

jiti

Sponsors

License

MIT License © 2023-PRESENT Anthony Fu

Keywords

FAQs

Package last updated on 10 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc