Mask for form fields

I need to implement mask functionality in form fields and would like to know if there are any restrictions in the project regarding the use of third-party code?
Is there any suggestion of which library / component to use mask?
I have identified the following:

The license should be compatible (Apache or MIT for example) and preferably it’s an active project on github (only the last one seems to be active).