🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

string-pixel-width

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-pixel-width - npm Package Compare versions

Comparing version

to
1.0.5

2

package.json
{
"name": "string-pixel-width",
"version": "1.0.4",
"version": "1.0.5",
"description": "String pixel width measurement on the backend in Javascript",

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

@@ -9,3 +9,3 @@ [string-pixel-width](https://github.com/adambisek/string-pixel-width)

Read more about purpose - http://TOOD
Why I created this package? Read more about purpose: http://TOOD

@@ -15,2 +15,3 @@ Installation

To install the stable version:
<code>

@@ -22,2 +23,9 @@ npm install --save string-pixel-width

------------
embed jako v jestu
```
var pixelWidth = require('string-pixel-width');
const width = pixelWidth('My text ...', { size: 10 });
console.log('This text is ' + width + 'px long in the size of 10px.');
// This text is 43.5px long in the size of 10px.
```