commander_native
TypeScript icon, indicating that this package has built-in type declarations

0.0.20 • Public • Published

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

Dependents (1)

Package Sidebar

Install

npm i commander_native

Weekly Downloads

0

Version

0.0.20

License

MIT

Last publish

Collaborators

  • uriegel