seguid / seguid-javascript

SEGUID v2: Checksums for Linear, Circular, Single- and Double-Stranded Biological Sequences
https://www.seguid.org
MIT License
0 stars 1 forks source link

Pull --version information from package.json #12

Closed HenrikBengtsson closed 8 months ago

HenrikBengtsson commented 8 months ago

It would be great if:

https://github.com/seguid/seguid-javascript/blob/aa24853e76190efe347b7616ad46b639f2c635dc/cli.js#L30

could be updated to pull the information from the package itself, i.e. from

https://github.com/seguid/seguid-javascript/blob/aa24853e76190efe347b7616ad46b639f2c635dc/package.json#L1-L7

Doing so would remove the risk of forgetting the two version specifications in sync.

I don't know node well enough, but it feels like that should be possible.