Skip to content

Commit

Permalink
fix named exports
Browse files Browse the repository at this point in the history
node/npm really make this shitty: nodejs/node#40541
  • Loading branch information
CamJN committed Jan 15, 2023
1 parent 8e08e40 commit ec7102e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ interface GetArgv {

const addon: GetArgv = require('../build/Release/getargv_native');

export = addon
exports.PID_MAX = addon.PID_MAX;
exports.ARG_MAX = addon.ARG_MAX;
exports.get_argv_of_pid = addon.get_argv_of_pid;
exports.get_argv_and_argc_of_pid = addon.get_argv_and_argc_of_pid;

0 comments on commit ec7102e

Please sign in to comment.