1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 05:10:05 +02:00

add node modules to repo

This commit is contained in:
s2
2018-06-03 13:47:11 +02:00
parent e8c95255e8
commit d002126b72
4115 changed files with 440218 additions and 7519 deletions

27
node_modules/truncate-utf8-bytes/README.md generated vendored Normal file
View File

@@ -0,0 +1,27 @@
# truncate-utf8-bytes [![build status](https://secure.travis-ci.org/parshap/truncate-utf8-bytes.svg?branch=master)](http://travis-ci.org/parshap/truncate-utf8-bytes)
Truncate a string to the given length in bytes. Correctly handles
multi-byte characters and surrogate pairs.
A browser implementation that doesn't use `Buffer.byteLength` is
provided to minimize build size.
## Example
```js
var truncate = require("truncate-utf8-bytes")
var str = "a☃" // a = 1 byte, ☃ = 3 bytes
console.log(truncate(str, 2))
// -> "a"
```
## API
### `var truncate = require("truncate-utf8-bytes")`
*When using browserify or webpack*, this automatically resolves to an
implementation that does not use `Buffer.byteLength`.
### `truncate(string, length)`
Returns `string` truncated to at most `length` bytes in length.