Skip to content

Commit f2f4043

Browse files
committed
Remove rest of bindings module
1 parent 694b209 commit f2f4043

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
let path = require('path');
7-
8-
let native = require(path.join('..', 'build', 'Release', 'windows_process_tree.node'));
6+
let native = require('../build/Release/windows_process_tree.node');
97

108
function buildProcessTree(processList, rootPid) {
119
let rootIndex = processList.findIndex(v => v.pid === rootPid);

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55

66
var assert = require('assert');
77
var child_process = require('child_process');
8-
var native = require('bindings')('windows_process_tree');
98
var getProcessTree = require('.');
109

10+
var native = require('./build/Release/windows_process_tree.node');
11+
1112
function pollUntil(makePromise, cb, interval, timeout) {
1213
makePromise().then((success) => {
1314
if (success) {

0 commit comments

Comments
 (0)