break-styled-lines
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"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[] | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
206
1
9392
15
1