2.0.0 • Published 1 year ago

native-addon-sample-package v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NPM Package: Native-Addon-Sample-Package

Tests Passing Tests Passing

Native-Addon-Sample-Package is a NPM package that allows for a simple C++ library to be run in Node.js projects using node-gyp The point of this package was to simply tests process of writing an NPM package using C++.

Dependencies

Linux & MacOS

  • Python v3.7, v3.8, v3.9, or v3.10

Windows

More Info

  • For more info see the node-gyp dependencies (click here))

Installation

Use the package manager npm to install Native-Addon-Sample-Package.

npm i native-addon-sample-package

Usage

const addon = require('native-addon-sample-package')

// returns 'dog'
console.log(addon.once('dog'))

// returns 'cat cat'
console.log(addon.twice('cat'))

// returns 'bird bird bird'
console.log(addon.triple('bird'))

Tests

This package uses Mocha for testing.

npm run test

Local Builds

The package can be run locally after globally installing node-gyp.

node-gyp rebuild

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

2.0.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago