You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

break-styled-lines

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

.babelrc

48

package.json
{
"name": "break-styled-lines",
"version": "1.1.0",
"description": "Add newlines to a string of text given a font style and width",
"version": "1.0.1",
"main": "src/index.ts",
"author": "Sam Gwilym <gwilym@me.com>",
"license": "MIT",
"files": [
"dist-*/",
"bin/"
],
"pika": true,
"sideEffects": false,
"keywords": [
"newline",
"linebreak",
"visual",
"typeset",
"styled"
],
"repository": "https://github.com/sgwilym/break-styled-lines",
"dependencies": {},
"private": false,
"devDependencies": {

@@ -35,8 +24,29 @@ "@babel/core": "^7.5.5",

"jest": "^24.9.0",
"jest-environment-jsdom-fourteen": "^0.1.0",
"typescript": "^3.5.3"
},
"private": false,
"source": "dist-src/index.js",
"types": "dist-types/index.d.ts",
"module": "dist-web/index.js"
"scripts": {
"build": "pika build",
"test": "jest"
},
"@pika/pack": {
"pipeline": [
[
"@pika/plugin-ts-standard-pkg"
],
[
"@pika/plugin-build-web"
]
]
},
"jest": {
"testEnvironment": "jest-environment-jsdom-fourteen"
},
"keywords": [
"newline",
"linebreak",
"visual",
"typeset",
"styled"
]
}

@@ -5,6 +5,2 @@ # break-styled-lines

## Installation
`yarn add break-styled-lines`
## Example

@@ -35,2 +31,6 @@

## Installation
`yarn add break-styled-lines`
## Usage

@@ -40,4 +40,4 @@

breakLines(
// The string you'd like to break into lines
text: string
// The string you'd like to break into lines. Can also be an array of strings, which will be treated as a single run of text, and then split back apart again.
text: string | string[]
// The width constraining the text

@@ -47,3 +47,3 @@ width: number

style: string
): string
): string | string[]
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc