# commander_native

> commander_native

Latest version **0.0.20** (published 2017-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install commander_native
pnpm add commander_native
yarn add commander_native
bun add commander_native
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.20 |
| Published | 2017-10-16 |
| First published | 2017-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Author | Uwe Riegel |
| Maintainers | uriegel |

## Links

- npm: https://www.npmjs.com/package/commander_native
- npm.io page: https://npm.io/package/commander_native

## Dependencies (1)

- [nan](https://npm.io/package/nan.md) ^2.7.0

## Recent versions

- 0.0.20 (latest) — 2017-10-16
- 0.0.19 — 2017-10-16
- 0.0.18 — 2017-10-16
- 0.0.17 — 2017-10-15
- 0.0.16 — 2017-10-15
- 0.0.15 — 2017-10-15
- 0.0.14 — 2017-10-15
- 0.0.13 — 2017-10-15
- 0.0.12 — 2017-10-15
- 0.0.11 — 2017-10-15
- 0.0.10 — 2017-10-15
- 0.0.9 — 2017-10-15
- 0.0.8 — 2017-10-15
- 0.0.7 — 2017-10-14
- 0.0.6 — 2017-10-14
- … 5 more at https://npm.io/package/commander_native/versions

## 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>
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

---
_Source: https://npm.io/package/commander_native · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
