Simple HMAC-SHA1 for JavaScript. The code was extracted directly from Chromium examples for extensions.
npm install hmacsha1
var hmacsha1 = require('hmacsha1');
var hash = hmacsha1(KEY, DATA); //Returns Base64 Encoded String
https://developer.chrome.com/extensions/tut_oauth
https://developer.chrome.com/extensions/examples/extensions/oauth_contacts/chrome_ex_oauthsimple.js