StockerMC / examples

A collection of examples of Neon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

neon-examples

Github Actions

Examples and common patterns for Neon.

All examples are for napi-backend. For examples using legacy-backend see the legacy branch.

Table of Contents

Example Description
async-sqlite Async interface to a SQLite database
cpu-count Return the number of CPUs
hello-world Return a JS String with a greeting message

Contributing

Setup

The examples repository uses the npm 7 workspaces feature.

# npm 7 is required
npm --version

git clone https://github.com/neon-bindings/examples.git
cd examples
npm install

Tests

npm test

About

A collection of examples of Neon