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

text-width

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-width - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

16

index.js

@@ -18,3 +18,3 @@ var util = require('util');

return function(str, options) {
var width = function(str, options) {
options = extend({

@@ -44,6 +44,14 @@ style: 'normal',

};
width.supported = true;
return width;
};
module.exports = supported() ? initialize() : function() {
return 0;
};
module.exports = supported() ? initialize() : (function() {
var width = function() {
return 0;
};
width.supported = false;
return width;
}());
{
"name": "text-width",
"version": "1.1.0",
"version": "1.2.0",
"description": "Measure the text width in browsers",

@@ -5,0 +5,0 @@ "main": "index.js",

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