• Stars
    star
    321
  • Rank 130,752 (Top 3 %)
  • Language
  • Created about 6 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of examples of Neon

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
gzip-stream Asynchronously compress a stream of data
hello-world Return a JS String with a greeting message
tokio-fetch Asynchronously fetch a node release date

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