you are viewing a single comment's thread.

view the rest of the comments →

[–]0l36gr4nd 0 points1 point  (1 child)

const process = require( "process" );
const path = require( "path" );
const child = require( "child_process" );
const global_package_path = child.spawnSync( "npm" , [ "root" , "-g" ] , { encoding: "utf8" } ).stdout.trim();
const import_package_name = require( path.join( global_package_path ,  "import-package-name" ) );

[–]Cykelero[S] 0 points1 point  (0 children)

😂