You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exposing the various types and classes for programatical usage
with a shortcut for the complexity calculation. This should
give a decent support for functional or object-oriented support
while keeping the changes low.
refs: simonrenoult#8
adaliszk
added a commit
to adaliszk/node-code-complexity
that referenced
this issue
Feb 18, 2024
Exposing the various types and classes for programatical usage
with a shortcut for the complexity calculation. This should
give a decent support for functional or object-oriented support
while keeping the changes low.
refs: simonrenoult#8
I made a little improvement on the current export, mainly solving issues on using the package as a dependency in typescript. Adding documentation with JSDoc would likely be something to look at as well. Overall, the code is nicely readable, so for most people who want to use it programmatically, #57 should suffice.
What problem are you trying to solve?
Since v4.0.0, if one wants to integrate
code-complexity
with another program, the recommended solution is to use thejson
flag, example:Which is not ideal since it feels a bit hacky and the datastructure is unknown from a user point of view.
Describe the feature
A cool way to do things would be to be able to import
code-complexity
as a dependency, example:I initially planned that feature for
v4.0.0
but struggled with the TypeScript module system. Help definitely wanted :)The text was updated successfully, but these errors were encountered: