adding example for wrapping pre-created objects

Open
#9 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, nodejs
Domain
documentation

Research direction

Review the existing Node.js C++ addon examples and the issue's request for wrapping pre-created classes. Determine whether a standalone example can demonstrate this use case without changing the existing library classes; done means the repository contains a working example that explains the approach.

Written by the indexing model from the issue text.

Description

Hey!
This is more like something I am stuck at.

I have a library with header files, and I want to make bindings for that library. Yet, I can not change the already existing classes. So, I am looking for a way to wrap these existing classes into a nodejs module.

Currently, I am waiting for some peeps to respond. But it would still be awesome if that would be added here, as it is quite a usual case.

Kind regards, Ingwie! ^^

Dominant language
C++
Stars
2.6k
Forks
602
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nodejs/node-addon-examples

All issues in nodejs/node-addon-examples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.