@crossbind/port-curl-standalone-napi 0.0.0-stage → 2.0.0-beta.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,370 @@
1
+ @crossbind/port-curl-standalone-napi ships the JavaScript bindings, types and data of the components below; the addons that link them are in its platform packages.
2
+ The full license text of every component follows.
3
+
4
+ Effective license expression (also package.json "license"):
5
+
6
+ (MIT OR NCSA) AND Apache-2.0 AND curl AND MIT
7
+
8
+ The machine-readable component inventory is sbom.cdx.json next to this file.
9
+
10
+ GENERATED by `crossbind licenses --package` - do not edit. This file states facts and is not legal
11
+ advice; the compliance assessment is yours.
12
+
13
+ ----------------------------------------------------------------------
14
+
15
+ ## crossbind — MIT
16
+
17
+ - package: crossbind@2.0.0-beta.64
18
+ - source: https://github.com/crossbind/crossbind
19
+ - note: the embind-jsi and embind-napi runtime and the bindings crossbind generates
20
+
21
+ ```
22
+ MIT License
23
+
24
+ Copyright (c) 2026 Buğra Sarı and crossbind contributors
25
+
26
+ Permission is hereby granted, free of charge, to any person obtaining a copy
27
+ of this software and associated documentation files (the "Software"), to deal
28
+ in the Software without restriction, including without limitation the rights
29
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30
+ copies of the Software, and to permit persons to whom the Software is
31
+ furnished to do so, subject to the following conditions:
32
+
33
+ The above copyright notice and this permission notice shall be included in all
34
+ copies or substantial portions of the Software.
35
+
36
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
+ SOFTWARE.
43
+ ```
44
+
45
+ ## curl — curl
46
+
47
+ - package: @crossbind/port-curl-darwin@2.0.0-beta.64
48
+ - native version: 8.22.0
49
+ - source: https://curl.se/download/curl-8.22.0.tar.gz (sha256: d54dd598bf05927a726deb38df31c6a255ba83ff1de57c5d1464dac3ed8f44a1)
50
+
51
+ ```
52
+ === LICENSE ===
53
+
54
+ COPYRIGHT AND PERMISSION NOTICE
55
+
56
+ Copyright (c) 1996 - 2025, Daniel Stenberg, <daniel@haxx.se>, and many
57
+ contributors, see the THANKS file.
58
+
59
+ All rights reserved.
60
+
61
+ Permission to use, copy, modify, and distribute this software for any purpose
62
+ with or without fee is hereby granted, provided that the above copyright
63
+ notice and this permission notice appear in all copies.
64
+
65
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
67
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
68
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
69
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
70
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
71
+ OR OTHER DEALINGS IN THE SOFTWARE.
72
+
73
+ Except as contained in this notice, the name of a copyright holder shall not
74
+ be used in advertising or otherwise to promote the sale, use or other dealings
75
+ in this Software without prior written authorization of the copyright holder.
76
+ ```
77
+
78
+ ## emscripten-embind — MIT OR NCSA
79
+
80
+ - package: @crossbind/core-embind-jsi@2.0.0-beta.64
81
+ - source: https://github.com/emscripten-core/emscripten
82
+ - no license election recorded; the declared expression applies and all texts are included
83
+ - note: Emscripten's embind, adapted by @crossbind/core-embind-jsi
84
+
85
+ ```
86
+ MIT License
87
+
88
+ Copyright (c) 2026 Buğra Sarı and crossbind contributors
89
+
90
+ Permission is hereby granted, free of charge, to any person obtaining a copy
91
+ of this software and associated documentation files (the "Software"), to deal
92
+ in the Software without restriction, including without limitation the rights
93
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
94
+ copies of the Software, and to permit persons to whom the Software is
95
+ furnished to do so, subject to the following conditions:
96
+
97
+ The above copyright notice and this permission notice shall be included in all
98
+ copies or substantial portions of the Software.
99
+
100
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
101
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
102
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
103
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
104
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
105
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
106
+ SOFTWARE.
107
+
108
+ ==============================================================================
109
+
110
+ The embind sources in cpp/src/emscripten and js/embind.js are adapted from
111
+ Emscripten (https://github.com/emscripten-core/emscripten), whose license
112
+ follows. The notes on Node.js, musl and third_party/ that end the original file
113
+ concern parts of Emscripten this package does not include.
114
+
115
+ Emscripten is available under 2 licenses, the MIT license and the
116
+ University of Illinois/NCSA Open Source License.
117
+
118
+ Both are permissive open source licenses, with little if any
119
+ practical difference between them.
120
+
121
+ The reason for offering both is that (1) the MIT license is
122
+ well-known, while (2) the University of Illinois/NCSA Open Source
123
+ License allows Emscripten's code to be integrated upstream into
124
+ LLVM, which uses that license, should the opportunity arise.
125
+
126
+ The full text of both licenses follows.
127
+
128
+ ==============================================================================
129
+
130
+ Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
131
+
132
+ Permission is hereby granted, free of charge, to any person obtaining a copy
133
+ of this software and associated documentation files (the "Software"), to deal
134
+ in the Software without restriction, including without limitation the rights
135
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
136
+ copies of the Software, and to permit persons to whom the Software is
137
+ furnished to do so, subject to the following conditions:
138
+
139
+ The above copyright notice and this permission notice shall be included in
140
+ all copies or substantial portions of the Software.
141
+
142
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
143
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
144
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
145
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
146
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
147
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
148
+ THE SOFTWARE.
149
+
150
+ ==============================================================================
151
+
152
+ Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
153
+ All rights reserved.
154
+
155
+ Permission is hereby granted, free of charge, to any person obtaining a
156
+ copy of this software and associated documentation files (the
157
+ "Software"), to deal with the Software without restriction, including
158
+ without limitation the rights to use, copy, modify, merge, publish,
159
+ distribute, sublicense, and/or sell copies of the Software, and to
160
+ permit persons to whom the Software is furnished to do so, subject to
161
+ the following conditions:
162
+
163
+ Redistributions of source code must retain the above copyright
164
+ notice, this list of conditions and the following disclaimers.
165
+
166
+ Redistributions in binary form must reproduce the above
167
+ copyright notice, this list of conditions and the following disclaimers
168
+ in the documentation and/or other materials provided with the
169
+ distribution.
170
+
171
+ Neither the names of Mozilla,
172
+ nor the names of its contributors may be used to endorse
173
+ or promote products derived from this Software without specific prior
174
+ written permission.
175
+
176
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
177
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
178
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
179
+ IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR
180
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
181
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
182
+ SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
183
+ ```
184
+
185
+ ## openssl — Apache-2.0
186
+
187
+ - package: @crossbind/port-openssl-darwin@2.0.0-beta.64
188
+ - native version: 4.0.3
189
+ - source: https://github.com/openssl/openssl/releases/download/openssl-4.0.3/openssl-4.0.3.tar.gz (sha256: 325b5c806167c13b40b1ffeadfe0248197c00eccc4cf123ec1e28d2d2fd216d9)
190
+
191
+ ```
192
+ === LICENSE ===
193
+
194
+ Apache License
195
+ Version 2.0, January 2004
196
+ https://www.apache.org/licenses/
197
+
198
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
199
+
200
+ 1. Definitions.
201
+
202
+ "License" shall mean the terms and conditions for use, reproduction,
203
+ and distribution as defined by Sections 1 through 9 of this document.
204
+
205
+ "Licensor" shall mean the copyright owner or entity authorized by
206
+ the copyright owner that is granting the License.
207
+
208
+ "Legal Entity" shall mean the union of the acting entity and all
209
+ other entities that control, are controlled by, or are under common
210
+ control with that entity. For the purposes of this definition,
211
+ "control" means (i) the power, direct or indirect, to cause the
212
+ direction or management of such entity, whether by contract or
213
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
214
+ outstanding shares, or (iii) beneficial ownership of such entity.
215
+
216
+ "You" (or "Your") shall mean an individual or Legal Entity
217
+ exercising permissions granted by this License.
218
+
219
+ "Source" form shall mean the preferred form for making modifications,
220
+ including but not limited to software source code, documentation
221
+ source, and configuration files.
222
+
223
+ "Object" form shall mean any form resulting from mechanical
224
+ transformation or translation of a Source form, including but
225
+ not limited to compiled object code, generated documentation,
226
+ and conversions to other media types.
227
+
228
+ "Work" shall mean the work of authorship, whether in Source or
229
+ Object form, made available under the License, as indicated by a
230
+ copyright notice that is included in or attached to the work
231
+ (an example is provided in the Appendix below).
232
+
233
+ "Derivative Works" shall mean any work, whether in Source or Object
234
+ form, that is based on (or derived from) the Work and for which the
235
+ editorial revisions, annotations, elaborations, or other modifications
236
+ represent, as a whole, an original work of authorship. For the purposes
237
+ of this License, Derivative Works shall not include works that remain
238
+ separable from, or merely link (or bind by name) to the interfaces of,
239
+ the Work and Derivative Works thereof.
240
+
241
+ "Contribution" shall mean any work of authorship, including
242
+ the original version of the Work and any modifications or additions
243
+ to that Work or Derivative Works thereof, that is intentionally
244
+ submitted to Licensor for inclusion in the Work by the copyright owner
245
+ or by an individual or Legal Entity authorized to submit on behalf of
246
+ the copyright owner. For the purposes of this definition, "submitted"
247
+ means any form of electronic, verbal, or written communication sent
248
+ to the Licensor or its representatives, including but not limited to
249
+ communication on electronic mailing lists, source code control systems,
250
+ and issue tracking systems that are managed by, or on behalf of, the
251
+ Licensor for the purpose of discussing and improving the Work, but
252
+ excluding communication that is conspicuously marked or otherwise
253
+ designated in writing by the copyright owner as "Not a Contribution."
254
+
255
+ "Contributor" shall mean Licensor and any individual or Legal Entity
256
+ on behalf of whom a Contribution has been received by Licensor and
257
+ subsequently incorporated within the Work.
258
+
259
+ 2. Grant of Copyright License. Subject to the terms and conditions of
260
+ this License, each Contributor hereby grants to You a perpetual,
261
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
262
+ copyright license to reproduce, prepare Derivative Works of,
263
+ publicly display, publicly perform, sublicense, and distribute the
264
+ Work and such Derivative Works in Source or Object form.
265
+
266
+ 3. Grant of Patent License. Subject to the terms and conditions of
267
+ this License, each Contributor hereby grants to You a perpetual,
268
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
269
+ (except as stated in this section) patent license to make, have made,
270
+ use, offer to sell, sell, import, and otherwise transfer the Work,
271
+ where such license applies only to those patent claims licensable
272
+ by such Contributor that are necessarily infringed by their
273
+ Contribution(s) alone or by combination of their Contribution(s)
274
+ with the Work to which such Contribution(s) was submitted. If You
275
+ institute patent litigation against any entity (including a
276
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
277
+ or a Contribution incorporated within the Work constitutes direct
278
+ or contributory patent infringement, then any patent licenses
279
+ granted to You under this License for that Work shall terminate
280
+ as of the date such litigation is filed.
281
+
282
+ 4. Redistribution. You may reproduce and distribute copies of the
283
+ Work or Derivative Works thereof in any medium, with or without
284
+ modifications, and in Source or Object form, provided that You
285
+ meet the following conditions:
286
+
287
+ (a) You must give any other recipients of the Work or
288
+ Derivative Works a copy of this License; and
289
+
290
+ (b) You must cause any modified files to carry prominent notices
291
+ stating that You changed the files; and
292
+
293
+ (c) You must retain, in the Source form of any Derivative Works
294
+ that You distribute, all copyright, patent, trademark, and
295
+ attribution notices from the Source form of the Work,
296
+ excluding those notices that do not pertain to any part of
297
+ the Derivative Works; and
298
+
299
+ (d) If the Work includes a "NOTICE" text file as part of its
300
+ distribution, then any Derivative Works that You distribute must
301
+ include a readable copy of the attribution notices contained
302
+ within such NOTICE file, excluding those notices that do not
303
+ pertain to any part of the Derivative Works, in at least one
304
+ of the following places: within a NOTICE text file distributed
305
+ as part of the Derivative Works; within the Source form or
306
+ documentation, if provided along with the Derivative Works; or,
307
+ within a display generated by the Derivative Works, if and
308
+ wherever such third-party notices normally appear. The contents
309
+ of the NOTICE file are for informational purposes only and
310
+ do not modify the License. You may add Your own attribution
311
+ notices within Derivative Works that You distribute, alongside
312
+ or as an addendum to the NOTICE text from the Work, provided
313
+ that such additional attribution notices cannot be construed
314
+ as modifying the License.
315
+
316
+ You may add Your own copyright statement to Your modifications and
317
+ may provide additional or different license terms and conditions
318
+ for use, reproduction, or distribution of Your modifications, or
319
+ for any such Derivative Works as a whole, provided Your use,
320
+ reproduction, and distribution of the Work otherwise complies with
321
+ the conditions stated in this License.
322
+
323
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
324
+ any Contribution intentionally submitted for inclusion in the Work
325
+ by You to the Licensor shall be under the terms and conditions of
326
+ this License, without any additional terms or conditions.
327
+ Notwithstanding the above, nothing herein shall supersede or modify
328
+ the terms of any separate license agreement you may have executed
329
+ with Licensor regarding such Contributions.
330
+
331
+ 6. Trademarks. This License does not grant permission to use the trade
332
+ names, trademarks, service marks, or product names of the Licensor,
333
+ except as required for reasonable and customary use in describing the
334
+ origin of the Work and reproducing the content of the NOTICE file.
335
+
336
+ 7. Disclaimer of Warranty. Unless required by applicable law or
337
+ agreed to in writing, Licensor provides the Work (and each
338
+ Contributor provides its Contributions) on an "AS IS" BASIS,
339
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
340
+ implied, including, without limitation, any warranties or conditions
341
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
342
+ PARTICULAR PURPOSE. You are solely responsible for determining the
343
+ appropriateness of using or redistributing the Work and assume any
344
+ risks associated with Your exercise of permissions under this License.
345
+
346
+ 8. Limitation of Liability. In no event and under no legal theory,
347
+ whether in tort (including negligence), contract, or otherwise,
348
+ unless required by applicable law (such as deliberate and grossly
349
+ negligent acts) or agreed to in writing, shall any Contributor be
350
+ liable to You for damages, including any direct, indirect, special,
351
+ incidental, or consequential damages of any character arising as a
352
+ result of this License or out of the use or inability to use the
353
+ Work (including but not limited to damages for loss of goodwill,
354
+ work stoppage, computer failure or malfunction, or any and all
355
+ other commercial damages or losses), even if such Contributor
356
+ has been advised of the possibility of such damages.
357
+
358
+ 9. Accepting Warranty or Additional Liability. While redistributing
359
+ the Work or Derivative Works thereof, You may choose to offer,
360
+ and charge a fee for, acceptance of support, warranty, indemnity,
361
+ or other liability obligations and/or rights consistent with this
362
+ License. However, in accepting such obligations, You may act only
363
+ on Your own behalf and on Your sole responsibility, not on behalf
364
+ of any other Contributor, and only if You agree to indemnify,
365
+ defend, and hold each Contributor harmless for any liability
366
+ incurred by, or claims asserted against, such Contributor by reason
367
+ of your accepting any such warranty or additional liability.
368
+
369
+ END OF TERMS AND CONDITIONS
370
+ ```
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
- # Temporary Holding Version
1
+ # @crossbind/port-curl-standalone-napi
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ curl for Node.js with nothing to build: prebuilt Node-API addons for macOS, Linux (glibc and musl) and Windows, on arm64 and x64. npm installs only the addon for your machine.
4
+
5
+ ```bash
6
+ npm install @crossbind/port-curl-standalone-napi@beta
7
+ ```
8
+
9
+ The package root exports every function, class and constant of the public headers, ready once `initNative()` resolves:
10
+
11
+ ```js
12
+ import * as curl from '@crossbind/port-curl-standalone-napi';
13
+
14
+ await curl.initNative();
15
+ ```
16
+
17
+ Headers: `curl/curl.h`, `curl/curlver.h`, `curl/easy.h`, `curl/multi.h`, `curl/urlapi.h`, `curl/options.h`, `curl/header.h`, `curl/websockets.h`, `curl/curl_crossbind.h`.
18
+
19
+ Built with [crossbind](https://crossbind.dev) from [@crossbind/port-curl](https://www.npmjs.com/package/@crossbind/port-curl).