Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

What is the relationship of pkg to enclose? #49

Closed
kethinov opened this issue May 1, 2017 · 6 comments
Closed

What is the relationship of pkg to enclose? #49

kethinov opened this issue May 1, 2017 · 6 comments
Labels

Comments

@kethinov
Copy link

kethinov commented May 1, 2017

Does pkg supersede enclose? There appears to be a relationship between the two projects, but I see that the github repo for enclose hasn't been updated in a while. Also pkg appears to be fully open source, whereas enclose is (partially?) proprietary.

Would be useful to have an explainer on this somewhere to reduce confusion.

Also, wow this project is cool. 😄

@rmharrison
Copy link
Contributor

rmharrison commented May 3, 2017

Recommendation: Maybe at a brief project history section in the README.md, to eventually be included on the github pages or readthedocs site?

@abacaj
Copy link

abacaj commented May 4, 2017

Looks like the use cases are copied from Enclose.

@pmq20
Copy link

pmq20 commented May 5, 2017

😄 Also checkout node-compiler with differences being,

Project Differences
pkg Pkg hacked fs.* API's dynamically in order to access in-package files, whereas Node.js Compiler leaves them alone and instead works on a deeper level via libsquash. Pkg uses JSON to store in-package files while Node.js Compiler uses the more sophisticated and widely used SquashFS as its data structure.
EncloseJS EncloseJS restricts access to in-package files to only five fs.* API's, whereas Node.js Compiler supports all fs.* API's. EncloseJS is proprietary licensed and charges money when used while Node.js Compiler is MIT-licensed and users are both free to use it and free to modify it.
Nexe Nexe does not support dynamic require because of its use of browserify, whereas Node.js Compiler supports all kinds of require including require.resolve.
asar Asar uses JSON to store files' information while Node.js Compiler uses SquashFS. Asar keeps the code archive and the executable separate while Node.js Compiler links all JavaScript source code together with the Node.js virtual machine and generates a single executable as the final product.
AppImage AppImage supports only Linux with a kernel that supports SquashFS, while Node.js Compiler supports all three platforms of Linux, macOS and Windows, meanwhile without any special feature requirements from the kernel.

@amritdevilo
Copy link

if the question has been answered, why not close this issue

@kethinov kethinov closed this as completed May 9, 2017
@levrik
Copy link

levrik commented May 9, 2017

@amritdevilo I don't see where the initial question was answered. Do I'm missing something?

@kethinov
Copy link
Author

kethinov commented May 9, 2017

I think the answer was "yes." But I suppose it wasn't explicit. Reopening...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

8 participants