Finding a library that complies with ECMAScript only

Asked 1 years ago, Updated 1 years ago, 23 views

I would like to know how to find a library that relies solely on ECMAScript (except for DOM and browser specifications).
More specifically, it's like using a browser or ECMAScript engine.If the UI is not involved, I think it is made up of pure calculations, but what do you think?

javascript

2022-09-30 18:11

1 Answers

For example, if the hypothesis that "something depends on something = using something defined globally" is valid,

"If you run jshint without specifying any globals in the .jshintrc file, you will get a warning that the dependent library is taking advantage of a global definition that has not been declared within the target library."

I think thatFor example, when you run jshint on a library under investigation, if you use jQuery, you'll see "$ not declared" and if you rely on AngularJS1 you'll see "angular not declared" (of course, it doesn't make sense to run jshint as well.

If there is no warning, it is likely that there is no dependency library.It's not a reliable method, but I think it can be used as a judgment material.


2022-09-30 18:11

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.