Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@endpass/utils

Package Overview
Dependencies
Maintainers
6
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@endpass/utils - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

2

package.json
{
"name": "@endpass/utils",
"version": "1.7.0",
"version": "1.8.0",
"description": "Utils and helper functions",

@@ -5,0 +5,0 @@ "author": "Endpass, Inc",

@@ -10,3 +10,19 @@ 'use strict';

return new RegExp(b, 'i').test(a);
},
/**
* Transform hex encoded string to utf8
* @param {string} str String in hex encoding
* @returns {string}
*/
fromHexToUtf8: function fromHexToUtf8(str) {
var source = str.replace(/^0x/, '');
var decodedString = '';
for (var i = 0; i < source.length; i += 2) {
decodedString += String.fromCharCode(parseInt(source.substr(i, 2), 16));
}
return decodeURIComponent(escape(decodedString));
}
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc