How to write CommonJS exports that can be name-imported

This blog post explores how to write CommonJS modules so that their exports can be name-imported from ESM modules on Node.js.


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer

This blog post explores how to write CommonJS modules so that their exports can be name-imported from ESM modules on Node.js.


This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer


Print Share Comment Cite Upload Translate Updates
APA

Dr. Axel Rauschmayer | Sciencx (2022-10-01T00:00:00+00:00) How to write CommonJS exports that can be name-imported. Retrieved from https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/

MLA
" » How to write CommonJS exports that can be name-imported." Dr. Axel Rauschmayer | Sciencx - Saturday October 1, 2022, https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/
HARVARD
Dr. Axel Rauschmayer | Sciencx Saturday October 1, 2022 » How to write CommonJS exports that can be name-imported., viewed ,<https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/>
VANCOUVER
Dr. Axel Rauschmayer | Sciencx - » How to write CommonJS exports that can be name-imported. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/
CHICAGO
" » How to write CommonJS exports that can be name-imported." Dr. Axel Rauschmayer | Sciencx - Accessed . https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/
IEEE
" » How to write CommonJS exports that can be name-imported." Dr. Axel Rauschmayer | Sciencx [Online]. Available: https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/. [Accessed: ]
rf:citation
» How to write CommonJS exports that can be name-imported | Dr. Axel Rauschmayer | Sciencx | https://www.scien.cx/2022/10/01/how-to-write-commonjs-exports-that-can-be-name-imported/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.