Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
LiteSpeed
: 162.0.232.56 | : 216.73.216.178
Cant Read [ /etc/named.conf ]
8.1.33
syrihapj
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
syrihapj /
public_html /
node_modules /
linebreak /
[ HOME SHELL ]
Name
Size
Permission
Action
node_modules
[ DIR ]
dr-xr-xr-x
src
[ DIR ]
dr-xr-xr-x
test
[ DIR ]
dr-xr-xr-x
package.json
794
B
-rw-r--r--
readme.md
2.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : readme.md
# linebreak An implementation of the Unicode Line Breaking Algorithm (UAX #14) > Line breaking, also known as word wrapping, is the process of breaking a section of text into lines such that it will fit in the > available width of a page, window or other display area. The Unicode Line Breaking Algorithm performs part of this process. > Given an input text, it produces a set of positions called "break opportunities" that are appropriate points to begin a new line. > The selection of actual line break positions from the set of break opportunities is not covered by the Unicode Line Breaking Algorithm, > but is in the domain of higher level software with knowledge of the available width and the display size of the text. This is a JavaScript implementation of the [Unicode Line Breaking Algorithm](http://www.unicode.org/reports/tr14/#SampleCode) for Node.js (and browsers I guess). It is used by [PDFKit](http://github.com/devongovett/pdfkit/) for line wrapping text in PDF documents, but since the algorithm knows nothing about the actual visual appearance or layout of text, it could be used for other things as well. ## Installation You can install via npm npm install linebreak ## Example ```javascript var LineBreaker = require('linebreak'); var lorem = 'lorem ipsum...'; var breaker = new LineBreaker(lorem); var last = 0; var bk; while (bk = breaker.nextBreak()) { // get the string between the last break and this one var word = lorem.slice(last, bk.position); console.log(word); // you can also check bk.required to see if this was a required break... if (bk.required) { console.log('\n\n'); } last = bk.position; } ``` ## Development Notes In order to use the library, you shouldn't need to know this, but if you're interested in contributing or fixing bugs, these things might be of interest. * The `src/classes.coffee` file is automatically generated from `LineBreak.txt` in the Unicode database by `src/generate_data.coffee`. It should be rare that you need to run this, but you may if, for instance, you want to change the Unicode version. * You can run the tests using `npm test`. They are written using `mocha`, and generated from `LineBreakTest.txt` from the Unicode database, which is included in the repository for performance reasons while running them. About 150 of the over 6000 tests are currently skipped due to implementation differences. It appears that some of the tests may be wrong or use different tailoring from the spec. ## License MIT
Close