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

fast-word-wrap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-word-wrap - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

index.d.ts

1

index.js

@@ -0,1 +1,2 @@

/** @type {(s: string, b: number) => string} */
function wrap(str, cpl) {

@@ -2,0 +3,0 @@ // compute input string length

9

package.json
{
"name": "fast-word-wrap",
"version": "1.0.1",
"version": "1.1.0",
"description": "",

@@ -29,7 +29,10 @@ "main": "index.js",

"devDependencies": {
"ava": "^3.15.0",
"ava": "^5.2.0",
"tsd": "^0.28.1",
"typescript": "^5.0.3",
"word-wrap": "^1.2.3",
"wordwrap": "^1.0.0",
"wrap-text": "^1.0.9"
}
},
"types": "index.d.ts"
}

@@ -71,3 +71,3 @@ # fast-word-wrap

> fast-word-wrap@1.0.0 test /home/ale/dev/fast-word-wrap
> fast-word-wrap@1.1.0 test
> ava --verbose "test/unit.js"

@@ -115,13 +115,13 @@

> fast-word-wrap@1.0.0 test /home/ale/dev/fast-word-wrap
> ava --verbose "test/benchmark.js"
> fast-word-wrap@1.1.0 test
> ava --verbose test/benchmark.js
✔ wrap faster than others (5.6s)
ℹ Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
✔ wrap faster than others (2.5s)
ℹ 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
ℹ wrapping 10000 times with each package a fragment of "El inmortal" by Jorge Luis Borges...
ℹ wordwrap took 3432.02 ms
ℹ wrap-text took 1185.77 ms
ℹ word-wrap took 948.94 ms
ℹ fast-word-wrap took 123.29 ms
ℹ wordwrap took 1500.74 ms
ℹ wrap-text took 532.84 ms
ℹ word-wrap took 506.52 ms
ℹ fast-word-wrap took 47.02 ms

@@ -128,0 +128,0 @@

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