marp-cli icon indicating copy to clipboard operation
marp-cli copied to clipboard

Investigate about Node.js single executable applications

Open yhatt opened this issue 1 year ago • 1 comments

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)

yhatt avatar Feb 14 '24 11:02 yhatt

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

Aurosish07 avatar Jun 20 '24 12:06 Aurosish07