# codespan-napi-linux-arm64-gnu

> Template project for writing node package with napi-rs

Latest version **0.4.0** (published 2022-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install codespan-napi-linux-arm64-gnu
pnpm add codespan-napi-linux-arm64-gnu
yarn add codespan-napi-linux-arm64-gnu
bun add codespan-napi-linux-arm64-gnu
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2022-04-07 |
| First published | 2022-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 10 |
| Dependencies | 0 |
| Unpacked size | 446.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | IWANABETHATGUY |
| Maintainers | iwanabethatguy |
| Keywords | napi-rs, NAPI, N-API, Rust, node-addon, node-addon-api |

## Links

- npm: https://www.npmjs.com/package/codespan-napi-linux-arm64-gnu
- Repository: https://github.com/IWANABETHATGUY/codespan-napi
- Homepage: https://github.com/IWANABETHATGUY/codespan-napi#readme
- Issues: https://github.com/IWANABETHATGUY/codespan-napi/issues
- npm.io page: https://npm.io/package/codespan-napi-linux-arm64-gnu

## Recent versions

- 0.4.0 (latest) — 2022-04-07
- 0.3.1 — 2022-04-02
- 0.3.0 — 2022-04-01
- 0.2.0 — 2022-04-01
- 0.1.9 — 2022-03-31
- 0.1.8 — 2022-03-31

## README

# `codespan-napi`

![https://github.com/napi-rs/package-template/actions](https://github.com/napi-rs/package-template/workflows/CI/badge.svg)

> codespan-reporting node binding powered by napi-rs

## Installation 

```
yarn add codespan-napi
```

## Features
1. You could see an equivalent example to https://github.com/brendanzab/codespan readme here [examples/simple.js](examples/simple.js)
2. [Save diagnostic message as svg](examples/generateSvg.js), the preview svg is generated by the example
![diagnostic_svg](misc/generateSvg.svg)
3. [Diagnostic cross multiple file](examples/multiple.js)
![multiple.svg](misc/multiple_file.svg)
4. Jump to error code from terminal
   ![jump.gif](misc/jump.gif)

## Support matrix

### Operating Systems

|                  | node12 | node14 | node16 |
| ---------------- | ------ | ------ | ------ |
| Windows x64      | ✓      | ✓      | ✓      |
| Windows x32      | ✓      | ✓      | ✓      |
| Windows arm64    | ✓      | ✓      | ✓      |
| macOS x64        | ✓      | ✓      | ✓      |
| macOS arm64      | ✓      | ✓      | ✓      |
| Linux x64 gnu    | ✓      | ✓      | ✓      |
| Linux x64 musl   | ✓      | ✓      | ✓      |
| Linux arm gnu    | ✓      | ✓      | ✓      |
| Linux arm64 gnu  | ✓      | ✓      | ✓      |
| Linux arm64 musl | ✓      | ✓      | ✓      |
| Android arm64    | ✓      | ✓      | ✓      |
| Android armv7    | ✓      | ✓      | ✓      |
| FreeBSD x64      | ✓      | ✓      | ✓      |

## Ability

### Build

After `yarn build/npm run build` command, you can see `package-template.[darwin|win32|linux].node` file in project root. This is the native addon built from [lib.rs](./src/lib.rs).

### Test

With [ava](https://github.com/avajs/ava), run `yarn test/npm run test` to testing native addon. You can also switch to another testing framework if you want.

## Develop requirements

- Install latest `Rust`
- Install `Node.js@10+` which fully supported `Node-API`
- Install `yarn@1.x`

## Test in local

- yarn
- yarn build
- yarn test

And you will see:

```bash
$ ava --verbose

  ✔ sync function from native code
  ✔ sleep function from native code (201ms)
  ─

  2 tests passed
✨  Done in 1.12s.
```

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