Fix Require Modules

by mnaoumov
5
4
3
2
1
Score: 65/100

Description

Category: Coding & Technical Tools

The Fix Require Modules plugin for Obsidian enhances the experience of working with JavaScript and TypeScript by fixing limitations related to module imports within Obsidian. It allows users to seamlessly work with custom JavaScript/TypeScript scripts, including those used in Dataview, Templater, and other plugins. The plugin introduces advanced functions like require() and requireAsync() for both desktop and mobile, making it possible to import modules and work with files from relative paths, system paths, and even URLs. Additionally, the plugin offers improved support for ECMAScript and TypeScript modules, making it easier to integrate and develop scripts in a modern development environment.

Reviews

No reviews yet.

Stats

131
stars
13,330
downloads
9
forks
799
days
1
days
1
days
4
total PRs
1
open PRs
1
closed PRs
2
merged PRs
36
total issues
0
open issues
36
closed issues
328
commits

Latest Version

a day ago

Changelog

  • test: add tests
  • refactor!: new template

README file from

Github

CodeScript Toolkit

formerly known as Fix Require Modules, see Rebranding section for more details

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

This is a plugin for Obsidian that allows to do a lot of things with JavaScript/TypeScript scripts from inside the Obsidian itself.

Who is this plugin for?

This plugin is for you if you want to:

Why this plugin?

There are several very good plugins that allow to write JavaScript/TypeScript scripts for Obsidian, but they all have their own limitations and quirks.

Most of those plugins support writing scripts in CommonJS (cjs) only, which is not so used nowadays.

None of those plugins provide you the developer experience as you would have in any other modern JavaScript/TypeScript development environment.

This plugin aims to erase the line between the Obsidian world and the JavaScript/TypeScript development world.

Usage

See docs.

You can download demo vault to see usage examples.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command:

window.DEBUG.enable('fix-require-modules');

For more details, refer to the documentation.

Rebranding

This plugin was formerly known as Fix Require Modules.

The plugin quickly overgrew its original purpose and got way more features than just fixing require() calls. That's why it got a new name.

However, for the backward compatibility, the previous id fix-require-modules is still used internally and you might find it

  • in plugin folder name;
  • in plugin URL;
  • in Debugging section;

Support

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.