marp-team / marp-cli

A CLI interface for Marp and Marpit based converters
MIT License
1.83k stars 104 forks source link

Investigate about Node.js single executable applications #568

Open yhatt opened 6 months ago

yhatt commented 6 months ago

Node.js v19.7 and later include experimental support for single executable applications.

The standalone binaries of Marp CLI are currently produced by Vercel's pkg. However, due to the discontinuation of the pkg project in favor of Node.js's efforts, we must consider migrating.

pkg has been deprecated with 5.8.1 as the last release. There are a number of successful forked versions of pkg already with various feature additions. Further, we’re excited about Node.js 21’s support for single executable applications. Thank you for the support and contributions over the years. The repository will remain open and archived.

https://github.com/vercel/pkg

pkg is still working but using compiled binary would be dangerous, due to the elevation of privilege vulnerability. (CVE-2024-24828)

Aurosish07 commented 1 month ago

but pkg does not work with latest version of node.js and i am facing problems with the node.js inbuilt single executable application feature plz help if anyone know the correct way , i got stuck when it told to remove es module to common js