x平方npm @ gubareve / xsquared 从字符串中删除所有空格。 安装 $ npm install @gubareve/xsquared 用法 const xsquared = require ( "@gubareve/xsquared" ) ; xsquared ( 4 ) ; //=> "16 xsquared ( "4" ) ; //=> Uncaught TypeError: xsquared requires a integer // at xsquared (:2:41) // at :1:1