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

[FEATURE] Function to 'coerce' an identifier

Open boxcee opened this issue 4 years ago • 0 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