You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node is expected to support the archive package like jar for java package.
We suppose the nar file means node archive package.
e.g. the core-js package contains >1700 files and 7MB, it can be installed as one file like core-js.3.0.1.nar with <500KB space.
node should load files in the archive package without extracting any files, instead of loading hundreds of files from disk. It will benefit the performance greatly.
Well-designed archive will improve performance greatly, not only the disk space. Files are all loaded from the archive directly (possibly with index). Any achive solution that requires extracting files is not what we want.
Run a package: (e.g. run index.js inside the nar file)
node -nar myapp.nar
require('xxx') can load module from either the xxx/ folder or the xxx.nar file.
node is expected to support the archive package like jar for java package.
We suppose the
nar
file means node archive package.e.g. the core-js package contains >1700 files and 7MB, it can be installed as one file like core-js.3.0.1.nar with <500KB space.
node should load files in the archive package without extracting any files, instead of loading hundreds of files from disk. It will benefit the performance greatly.
Run a package: (e.g. run index.js inside the nar file)
node -nar myapp.nar
require('xxx')
can load module from either thexxx/
folder or thexxx.nar
file.link to npm issue: npm/rfcs#100
PS. I find a
nar
module https://www.npmjs.com/package/nar/v/0.1.0-rc.2but it is not what I expect, as it extracts files from the package before running.
The text was updated successfully, but these errors were encountered: