bui-mask An awesome spm package! Install $ spm install bui-mask --save Usage var Mask = require('bui-mask'); // use Mask Api Here is more details.