JavaScript modules | Native add-ons then | Native add-ons now | ||
---|---|---|---|---|
1. | ... need to be compiled. | No | Not if there are pre-builds | Not if there are pre-builds |
2. | ... will work on all platforms and architectures. | Yes | Yes if there are pre-builds | Yes if there are pre-builds |
3. | ... are designed to work with all current and subsequent Node.js versions once written. | Yes | No | Yes if using N-API |
4. | ... can be loaded multiple times. | Yes | No | Yes if written as a context-aware add-on |
5. | ... are thread-safe if not explicitly making use of threading infrastructure. | Yes | No | Yes if written as a context-aware add-on |
6. | ... can be unloaded. | Yes | No | Yes if written as a context-aware add-on and using cleanup hooks |
Created
April 11, 2019 19:40
-
-
Save gabrielschulhof/af10c780c50571ac3bdcde32d157305a to your computer and use it in GitHub Desktop.
Table 2 for Medium post
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment