This PR fixes the naming of flag files inside box archives, such that names for things other than unscoped packages will work. Notably, this fixes the case of doing a top-level install of a package named by a URL or Github account/repo pair.
In addition to the main thrust of the PR:
I fixed a bug whereby npmbox would incorrectly complain about unnamed packages.
I cleaned up spacing and line width (mostly introduced by my previous PR) to better match the existing coding conventions.
I fixed a minor typo in the README file.
Note: I kept the spacing tweaks in a separate commit. If you'd prefer not to include that, let me know and I'll rework the PR.
BTW/FTR: This PR fixes tangentially-related problems I found while working on issue #31.
This PR fixes the naming of flag files inside box archives, such that names for things other than unscoped packages will work. Notably, this fixes the case of doing a top-level install of a package named by a URL or Github
account/repo
pair.In addition to the main thrust of the PR:
npmbox
would incorrectly complain about unnamed packages.Note: I kept the spacing tweaks in a separate commit. If you'd prefer not to include that, let me know and I'll rework the PR.
BTW/FTR: This PR fixes tangentially-related problems I found while working on issue #31.