New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pxcan

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pxcan - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

4

letters.js

@@ -6,3 +6,3 @@ import {pane} from './pane.js';

// http://james.padolsey.com/javascript/wordwrap-for-javascript/
function wordwrap(str, width = 80, maxLines = Infinity) {
function wordwrap(str, width, maxLines) {
const regex = RegExp('.{0,' +width+ '}(\\s|$)|.{' +width+ '}|.+$', 'g');

@@ -14,3 +14,3 @@ let lines = str.match(regex).slice(0, maxLines);

export function letters(font, str, maxCols=Infinity, maxRows=Infinity) {
export function letters(font, str, maxCols=10000, maxRows=10000) {
const lines = wordwrap(str, maxCols, maxRows);

@@ -17,0 +17,0 @@

{
"name": "pxcan",
"version": "0.0.7",
"version": "0.0.8",
"description": "ESM-ready pixel library",

@@ -5,0 +5,0 @@ "keywords": [

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