joopl-analyzer

Analyzes jOOPL-based OOP JavaScript and creates a dependency map which is used to asynchronously-load dependencies behind the scenes!

npm install joopl-analyzer
18 downloads in the last week
46 downloads in the last month

Welcome to jOOPL Analyzer !

Introduction

First of all, thank you for your interest on jOOPL and this analyzer tool.

If you're not familiar with jOOPL, jOOPL stands for "JavaScript Object-Oriented Programming Library" and jOOPL Analyzer is a very powerful tool which analyzes your existing jOOPL-based JavaScript code and generates a file called "moduleinfo.js".

That "moduleinfo.js" file will contain some kind of metadata that will let jOOPL load the required source files to the Web browser to work with some given class or a group of classes.

Follow this link to learn more and get great documentation about both jOOPL and jOOPL Analyzer

Basic usage how-to

jOOPL analyzer should be installed globally using npm:

npm -g install joopl-analyzer

Once it's installed, it can be executed globally in your shell environment.

joopl-analyzer command will analyze your JavaScript code starting from a base directory. If no base directory is provided, the analyzer will start from current directory in your shell session.

A concrete base directory will be provided calling the command this way:

joopl-analyzer --directory ./src
joopl-analyzer --directory c:\myproject

Final words

Again, thank you for your interest. Feedback will be appreciated. Please send it to:

And issues should be added in the GitHub repository:

About the author

jOOPL and jOOPL Analyzer is a project developed by Matías Fidemraizer. You may contact me either in GitHub or LinkedIn:

Changelog

1.1.3

Bugfix: When detecting if instances coming from a derived class had some dependency yet to be added, if there were no dependencies, analyzer was throwing errors.

1.1.2

Bugfix: Problems when detecting instances class members in class hierarchies.

1.1.0

  • Include support. Now analyzer supports including other moduleinfo.js from other analysis. This enables different frameworks to reference and automatically include third-party dependencies! Documentation will be updated soon to reflect this new feature.

1.0.5

Features

  • Now all parameters must be passed to the command-line using CLI arguments and "joopl-analyzer.json" configuration file gets absolutely deprectated.

1.0.4

Bugfixes:

  • In some cases, new instances weren't detected. It was an error executing some regular expression. Now this has been fixed.

1.0.3

Bugfixes:

  • Previous version introduced a bug: classes deriving built-in jOOPL classes produced an error during detection.

1.0.2

Bugfixes:

  • Dependencies in few cases weren't detected in the right order in very few cases.

1.0.1

Bugfixes:

  • Dependencies from more than a class hierarchy level were not detected.
  • New class instances from non-imported namespaces were parsed and this situation caused output errors. Now these are not parsed anymore as expected.

1.0.0

First public release.

npm loves you