tree-sitter-hurl/bindings/node/index.js
kjuulh 8d8a40a3a3
feat: with base
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-07-04 19:38:07 +02:00

20 lines
459 B
JavaScript

try {
module.exports = require("../../build/Release/tree_sitter_hurl_binding");
} catch (error1) {
if (error1.code !== 'MODULE_NOT_FOUND') {
throw error1;
}
try {
module.exports = require("../../build/Debug/tree_sitter_hurl_binding");
} catch (error2) {
if (error2.code !== 'MODULE_NOT_FOUND') {
throw error2;
}
throw error1
}
}
try {
module.exports.nodeTypeInfo = require("../../src/node-types.json");
} catch (_) {}