nodejs_interop 0.8.0 copy "nodejs_interop: ^0.8.0" to clipboard
nodejs_interop: ^0.8.0 copied to clipboard

discontinued
outdatedDart 1 only

Provides interoperability for Node.js applications.

Node.js Interop for Dart #

Dart Node.js Release License Coverage Build

This package provides Node.js interoperability for Dart.

Requirements #

If you plan to play with the sources, you will also need the latest Grinder version.

Installing via Pub #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  nodejs_interop: *

2. Install it #

Install this package and its dependencies from a command prompt:

$ pub get

3. Import it #

Now in your Dart code, you can use:

// Dart abstractions for I/O support.
import 'package:nodejs_interop/io.dart';

// JavaScript and Node.js interoperability.
import 'package:nodejs_interop/js.dart' as js;
import 'package:nodejs_interop/node.dart' as node;

Usage #

  • I/O support: file, socket, HTTP, and other I/O support for Node.js applications.
  • JavaScript: support for interoperating with JavaScript APIs.
  • Node.js: support for interoperating with Node.js APIs.
  • npm packages: support for interoperating with a predefined set of npm packages.
  • Pub transformer: automate the addition of a Node.js preamble to build assets.

Examples #

The following projects use this library to provide cross-platform features:

Unit tests #

In order to run the tests, you must install the Node.js test dependencies by running the following command:

$ npm install

Then, you can launch the test runner from the command prompt:

$ pub run test

See also #

License #

Node.js Interop for Dart is distributed under the MIT License.

0
likes
5
pub points
0%
popularity

Publisher

verified publisherbelin.io

Provides interoperability for Node.js applications.

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

barback, collection, file, http, js, node_preamble, path, platform, process, tuple

More

Packages that depend on nodejs_interop