Skip to main content

napi 0.25.0 copy "napi: ^0.25.0" to clipboard
napi: ^0.25.0 copied to clipboard

Dart bindings to Node-API for implementing native Node.js addons.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add napi

With Flutter:

 $ flutter pub add napi

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  napi: ^0.25.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:napi/napi.dart';
2
likes
140
points
1.04k
downloads

Documentation

API reference

Publisher

verified publishermedz.dev

Weekly Downloads

Dart bindings to Node-API for implementing native Node.js addons.

Repository (GitHub)
View/report issues

Topics

#node #interop #ffi

License

MIT (license)

Dependencies

crypto, ffi, meta, pub_semver

More

Packages that depend on napi