node-serialport-bindings-cpp/lib
Krzysztof Rosiński 730bc61942
extract bindings (#128)
Hello,

I have a use case where size of an application is important, I'd like to
webpack as much as possible. The problematic part is related *.node
files, I found a potential solution, example with sqlite:

```
externals: {
    './sqlite3-binding.js':       'commonjs ./node_sqlite3.node',
}
```

I can replace sqlite3-binding.js [1] with *.node, then I copy
node_sqlite3.node to the main application folder. I'd like to try
something similar with the serialport. However, it is slightly more
complicated since serialport doesn't have single import file. This PR is
an attempt to fix the problem.

[1]
https://github.com/TryGhost/node-sqlite3/blob/master/lib/sqlite3-binding.js

---------

Co-authored-by: Krzysztof Rosiński <krzysiek@jrdltd.co.uk>
2024-12-23 15:12:57 -05:00
..
mocks chore: upgrade ts and fix type warnings (#91) 2022-11-16 22:09:25 -05:00
bindings-win32-sn-parser.test.ts feat: migrate to typescript (#3) 2022-01-22 15:55:03 -05:00
bindings.test.ts Bring everything up-to-date (#194) 2024-12-23 14:38:28 -05:00
darwin.ts fix: fix windows type and make name them per os (#26) 2022-01-31 18:07:32 -05:00
errors.ts feat: BindingsError with a canceled property 2022-01-31 22:25:28 -05:00
index.ts fix: fix windows type and make name them per os (#26) 2022-01-31 18:07:32 -05:00
linux-list.test.ts feat: migrate to typescript (#3) 2022-01-22 15:55:03 -05:00
linux-list.ts Fallback to ID_USB_* (#116) 2023-07-14 18:05:48 +01:00
linux.ts fix: fix windows type and make name them per os (#26) 2022-01-31 18:07:32 -05:00
load-bindings.ts extract bindings (#128) 2024-12-23 15:12:57 -05:00
node-gype-build.d.ts feat: migrate to typescript (#3) 2022-01-22 15:55:03 -05:00
poller.test.ts chore: upgrade ts and fix type warnings (#91) 2022-11-16 22:09:25 -05:00
poller.ts extract bindings (#128) 2024-12-23 15:12:57 -05:00
serialport-bindings.ts extract bindings (#128) 2024-12-23 15:12:57 -05:00
unix-read.test.ts Bring everything up-to-date (#194) 2024-12-23 14:38:28 -05:00
unix-read.ts feat: BindingsError with a canceled property 2022-01-31 22:25:28 -05:00
unix-write.test.ts Bring everything up-to-date (#194) 2024-12-23 14:38:28 -05:00
unix-write.ts feat: new binding interface (#19) 2022-01-29 22:51:40 -05:00
win32-sn-parser.ts feat: migrate to typescript (#3) 2022-01-22 15:55:03 -05:00
win32.ts feat: Allow for RTS to be explicitly enabled on windows (#23) 2022-02-26 00:04:52 -05:00