node-semver icon indicating copy to clipboard operation
node-semver copied to clipboard

[FEATURE] Function to 'coerce' an identifier

Open boxcee opened this issue 5 years ago • 2 comments

What / Why

I think it would be nice to have a similar function like coerce() for identifiers only. Let's say there is a way for the user to check validity of an identifier (#350), what to do then? No idea where to start though. Extend coerce() somehow? Or create its own function? How to name it?

References

  • Related to #349
  • Related to #350

boxcee avatar Nov 11 '20 11:11 boxcee

This seems unnecessary (see https://github.com/npm/node-semver/issues/350#issuecomment-2605643843).

What's an example for an invalid identifier that should be made valid?

mbtools avatar Jan 21 '25 20:01 mbtools

Stop opt out

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Marc Bernard @.> Sent: Tuesday, January 21, 2025 2:23:19 PM To: npm/node-semver @.> Cc: Subscribed @.***> Subject: Re: [npm/node-semver] [FEATURE] Function to 'coerce' an identifier (#352)

This seems unnecessary (see #350 (comment)https://github.com/npm/node-semver/issues/350#issuecomment-2605643843).

What's an example for an invalid identifier that should be made valid?

— Reply to this email directly, view it on GitHubhttps://github.com/npm/node-semver/issues/352#issuecomment-2605664039, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BD3O5JYI2CPBLK3E5SR7CHD2L2UDPAVCNFSM6AAAAABVTLKZHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMBVGY3DIMBTHE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

6Demon6Child6 avatar Jan 21 '25 20:01 6Demon6Child6