npm.io
0.0.20 • Published 9 years ago

commander_native

Licence
MIT
Version
0.0.20
Deps
1
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

commander_native

C++ plugin for file commander

npm i -S nan

BUILD: node-gyp configure node-gyp build

TEST PUBLISH: npm pack

PUBLISH: npm login npm publish

UPDATE: npm login npm version t: patch, minor, or major npm publish

DEMO:

import * as native from "commander_native"

native.getFiles("c:\", (_, result) => { const items = result.map(n => { return { displayName: n.displayName, isHidden: n.isHidden, size: n.size, date: n.time, isDirectory: n.isDirectory
} }) console.log(items) })

TEST GC:

setInterval(() => { console.log("Tick...")
global.gc() }, 3000)

node --expose_gc test/test.js

buffer_delete_callback has to be called