normalize-package-data icon indicating copy to clipboard operation
normalize-package-data copied to clipboard

[QUESTION] How "verbose" should the normalized version be?

Open myrne opened this issue 11 years ago • 1 comments

For example, the code currently sets the "_id" field. A concatenation of name and version.

It also adds all optional dependencies to dependencies. I have no experience with the "semantics" of optional dependencies, but it's certainly verbose.

People fields (author and such) are expanded to {name,email,url} objects. Handy when coding, but maybe less appropriate as a canonical version.

Normalization code like this might have two actually use cases: One for easy consumption by computers, one for fixing a human's mistake, but keeping the JSON somewhat humane.

myrne avatar Apr 08 '13 21:04 myrne

It may be an argument for a "humanize-package-data" module or so.

myrne avatar Apr 08 '13 21:04 myrne