var CryptoJS = require('crypto-js') CryptoJS.HmacSHA1(params, "key") 参考:https://www.npmjs.com/package/crypto-js