commander_native
v0.0.20
Published
commander_native
Downloads
5
Readme
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