alexanderGugel / ied

:package: Like npm, but faster - an alternative package manager for Node
http://alexandergugel.github.io/ied
MIT License
1.99k stars 53 forks source link

Replace hashes with readable name #176

Open rumkin opened 7 years ago

rumkin commented 7 years ago

As I see in package structure from https://gist.github.com/alexanderGugel/a10ed5655d366875a280 each package get unique id and this is became a mess of id. Why not to use human readable names in format of {package-name}-{version}-{postfix} (where prefix used to prevent names conflicts)? It also would be unique.

  1. We got nice structure.
  2. Sorting is more relevant.
.
├── node_modules
│   ├── lodash -> lodash-v4.16.4-ied/package
│   ├── lodash-v4.16.4-ied
zkochan commented 7 years ago

pnpm has more human readable names in the store.

lodash@4.16.4

Although it currently does not contain the registry URL...

Scoped packages we escape with a +. Like @cycle+cyclejs@1.9.9

Maybe something similar can be used in ied. I would even suggest to use the same naming in the 2 projects

rumkin commented 7 years ago

@zkochan pnpm's name format is even better – no postfix needed.