tsconfig-paths VS alias-hq

Compare tsconfig-paths vs alias-hq and see what are their differences.

tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API. (by dividab)

alias-hq

The end-to-end solution for configuring, refactoring, maintaining and using path aliases (by davestewart)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
tsconfig-paths alias-hq
5 3
1,768 331
0.8% -
1.0 4.5
21 days ago 6 months ago
TypeScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tsconfig-paths

Posts with mentions or reviews of tsconfig-paths. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-28.

alias-hq

Posts with mentions or reviews of alias-hq. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-04.
  • The Native Way To Configure Path Aliases in Frontend Projects
    8 projects | dev.to | 4 May 2023
    There are multiple libraries available for configuring path aliases in Node.js, such as alias-hq and tsconfig-paths. However, while looking through the Node.js documentation, I discovered a way to configure path aliases without having to rely on third-party libraries. Moreover, this approach enables the use of aliases without requiring the build step.
  • Path Aliases in TypeScript and why you should use them
    1 project | dev.to | 3 Sep 2022
    You could make it work by yourself, but… instead of spending some time figuring out how to do it (feel free to do it if you want or have time for that), I recommend you to check this amazing package (Alias HQ) which is free and basically uses your tsconfig.json or jsconfig.json file to setup everything for you and make really easy to configure all those more advanced needs.
  • [AskJS] Do you use Yarn v2?
    3 projects | /r/javascript | 8 Feb 2022
    Where I personally gave up on trying to use Yarn + PnP for my team's project was folder aliases. We had a few aliases set up using https://github.com/davestewart/alias-hq , so that we could use the same aliases with Node, Jest, and Webpack. That wouldn't work as-is, because again Yarn has to have full control over all package file access, and so it needs to understand what those aliases are. I got stuck trying to figure out how to get those aliases configured with Yarn instead, and gave up on PnP at that point.

What are some alternatives?

When comparing tsconfig-paths and alias-hq you can also consider the following projects:

ts-monorepo - Template for setting up a TypeScript monorepo

storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.

tsdx - Zero-config CLI for TypeScript package development [Moved to: https://github.com/jaredpalmer/tsdx]

babel-plugin-tsconfig-paths-module-resolver - Use tsconfig-paths in any bundler that supports a custom babel config.

tsdx - Zero-config CLI for TypeScript package development

Visual Studio Code - Visual Studio Code

cli - the package manager for JavaScript

ts-monorepo-absolute-import-paths - A bare-bones Typescript/Node.js starter template with Absolute Path imports, Incremental Compilation and Live-Reloading built it.

jest - Delightful JavaScript Testing.

tsconfig-applier - Welcome to `tsconfig-applier`! This Visual Studio Code extension simplifies the process of selecting and applying TypeScript configuration files (`tsconfig.json`) from the https://github.com/tsconfig/bases repository. With this extension, you can effortlessly browse through available configuration

proposal-pkg-exports - Proposal for Bare Module Specifier Resolution in node.js