@direktspeed/baseurl
v0.1.1
Published
A Static Replaceable Adjustable Modifiy able baseUrl for your Applications
Downloads
3
Readme
baseUrl
Helps you got get a better programmer and makes your code portable it gives it super poweres got get loaded in other Environments then NodeJS as ECMAScript Module ESM and does a lot of magic buy just using it. You will expirence less Problems and get more stable software. No matter what frameworks your using with it.
This works with Angular and Vue and React and Svelte and everything you name it as long as it is also Javascript based.
npm i baseurl
const { baseUrl, nodeModules } = await import('baseurl');
// NodeJS Resolve without resolve totatal static reuseable analyzeable path linking.
import('./my-node-module/myModule.js', nodeModules);
Later in your bundler you can for advanced control and scenarios patch the baseurl module anytime and export a other path under baseUrl or nodeModules to adjust the path without changing a single line of code.