root-project / jsroot

JavaScript ROOT
MIT License
187 stars 80 forks source link

How to remove jsroot source_dir message in node.js #296

Closed DraTeots closed 5 months ago

DraTeots commented 5 months ago

I am making a tool using jsroot in node.js. Whenver the script is executed I get a message in console:

Set jsroot source_dir to file:///mnt/c/eic/firebird/root2cad/node_modules/jsroot/, 7.5.5 4/03/2024

I install jsroot through npm/yarn and import like:

import * as jsroot from "jsroot";
import * as geom  from "jsroot/geom"

How to switch off this message? (As the tool has to be quiet if everything is successful and no verbose flag is given )

linev commented 5 months ago

For the moment it is not possible.

I will check that can be done once I am back from vacations in mid April

DraTeots commented 5 months ago

Have a great vacation! The tool works and the message doesn't cause bugs, so just in case it is not a high priority in any way.

linev commented 5 months ago

I remove such output in case of node.js. In master and 7.6 branch.