Socket
Socket
Sign inDemoInstall

smartwrap

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartwrap - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

5

package.json
{
"name": "smartwrap",
"version": "2.0.0",
"version": "2.0.1",
"description": "Textwrap for javascript/nodejs. Correctly handles wide characters (宽字符) and emojis (😃). Wraps strings with option to break on words.",
"main": "src/main.js",
"engines": {
"node": ">=11.0.0"
"node": ">=6"
},

@@ -28,2 +28,3 @@ "bin": {

"dependencies": {
"array.prototype.flat": "^1.2.3",
"breakword": "^1.0.5",

@@ -30,0 +31,0 @@ "grapheme-splitter": "^1.0.4",

2

README.md

@@ -107,3 +107,3 @@ # smartwrap

node 4.0 <
node 6.0 <

@@ -110,0 +110,0 @@ ## License

const breakword = require("breakword")
const stripansi = require("strip-ansi")
const wcwidth = require("wcwidth")
const flat = require("array.prototype.flat")
if (!Array.prototype.flat) flat.shim()

@@ -5,0 +7,0 @@ const ANSIPattern = [

Sorry, the diff of this file is not supported yet

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