Skip to content

[QUSTION] Move value-inference functions into separate module? #14

Open
@myrne

Description

@myrne

Currently, there's a local "fixer.js" containing the value-inference code.
If this was put in a separate module, other interfaces to this code could be written.

Normalization of all package data is one application.
Another application could be to make a "class" that takes package data in its constructor, than has methods to get the inferred/fixed value for any field.

pkgData = new PkgData rawPkgData
console.log pkgData.getBugsURL()

Sometimes normalizing all fields isn't needed. For example, in the code for npm bugs command.
I do consider this a "nice to have". Far from critical.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions