Using Third-Party Modules
In addition to Node.js's native APIs, you can also use third-party modules in your plugin code. These third-party modules for Node.js are created and maintained by community developers, offering a var
Using the Third-Party Module is.js
npm install is_js --saveconst is = require('is_js');
if (is.number(x)) {
console.log('x is a number');
}
else {
console.log('x is not a number');
}const is = require('is_js');
eagle.onPluginCreate(() => {
var x = 1;
if (is.number(x)) {
document.write('x is a number');
} else {
document.write('x is not a number');
}
});
Third-Party Package Management Tool: NPM
Last updated