protobufjs 6.11.4 → 6.11.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/cli/node_modules/.package-lock.json +86 -32
  2. package/cli/node_modules/@babel/parser/package.json +66 -30
  3. package/cli/node_modules/@types/linkify-it/package.json +65 -36
  4. package/cli/node_modules/@types/markdown-it/package.json +67 -39
  5. package/cli/node_modules/@types/mdurl/package.json +53 -21
  6. package/cli/node_modules/acorn/package.json +48 -17
  7. package/cli/node_modules/acorn-jsx/package.json +42 -11
  8. package/cli/node_modules/argparse/package.json +52 -17
  9. package/cli/node_modules/bluebird/package.json +65 -38
  10. package/cli/node_modules/brace-expansion/index.js +14 -12
  11. package/cli/node_modules/brace-expansion/package.json +4 -1
  12. package/cli/node_modules/catharsis/package.json +44 -10
  13. package/cli/node_modules/deep-is/.travis.yml +5 -0
  14. package/cli/node_modules/deep-is/LICENSE +22 -0
  15. package/cli/node_modules/deep-is/README.markdown +70 -0
  16. package/cli/node_modules/deep-is/example/cmp.js +11 -0
  17. package/cli/node_modules/deep-is/index.js +102 -0
  18. package/cli/node_modules/deep-is/package.json +58 -0
  19. package/cli/node_modules/deep-is/test/NaN.js +16 -0
  20. package/cli/node_modules/deep-is/test/cmp.js +23 -0
  21. package/cli/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
  22. package/cli/node_modules/entities/package.json +95 -60
  23. package/cli/node_modules/escape-string-regexp/package.json +84 -41
  24. package/cli/node_modules/escodegen/escodegen.js +25 -66
  25. package/cli/node_modules/escodegen/package.json +11 -13
  26. package/cli/node_modules/esprima/package.json +82 -54
  27. package/cli/node_modules/estraverse/estraverse.js +1 -24
  28. package/cli/node_modules/estraverse/package.json +1 -1
  29. package/cli/node_modules/esutils/package.json +52 -21
  30. package/cli/node_modules/fast-levenshtein/LICENSE.md +25 -0
  31. package/cli/node_modules/fast-levenshtein/README.md +104 -0
  32. package/cli/node_modules/fast-levenshtein/levenshtein.js +136 -0
  33. package/cli/node_modules/fast-levenshtein/package.json +39 -0
  34. package/cli/node_modules/fs.realpath/package.json +52 -16
  35. package/cli/node_modules/graceful-fs/package.json +57 -25
  36. package/cli/node_modules/inflight/package.json +44 -15
  37. package/cli/node_modules/inherits/package.json +44 -12
  38. package/cli/node_modules/js2xmlparser/package.json +94 -62
  39. package/cli/node_modules/klaw/package.json +53 -23
  40. package/cli/node_modules/levn/LICENSE +22 -0
  41. package/cli/node_modules/levn/README.md +196 -0
  42. package/cli/node_modules/levn/lib/cast.js +298 -0
  43. package/cli/node_modules/levn/lib/coerce.js +285 -0
  44. package/cli/node_modules/levn/lib/index.js +22 -0
  45. package/cli/node_modules/levn/lib/parse-string.js +113 -0
  46. package/cli/node_modules/levn/lib/parse.js +102 -0
  47. package/cli/node_modules/levn/package.json +47 -0
  48. package/cli/node_modules/linkify-it/package.json +58 -23
  49. package/cli/node_modules/lodash/package.json +61 -10
  50. package/cli/node_modules/markdown-it/package.json +68 -33
  51. package/cli/node_modules/markdown-it-anchor/package.json +72 -30
  52. package/cli/node_modules/marked/package.json +87 -52
  53. package/cli/node_modules/mdurl/package.json +44 -9
  54. package/cli/node_modules/minimatch/README.md +37 -0
  55. package/cli/node_modules/minimatch/minimatch.js +160 -102
  56. package/cli/node_modules/minimatch/package.json +2 -2
  57. package/cli/node_modules/mkdirp/package.json +56 -22
  58. package/cli/node_modules/once/package.json +48 -14
  59. package/cli/node_modules/optionator/CHANGELOG.md +56 -0
  60. package/cli/node_modules/optionator/LICENSE +22 -0
  61. package/cli/node_modules/optionator/README.md +238 -0
  62. package/cli/node_modules/optionator/lib/help.js +260 -0
  63. package/cli/node_modules/optionator/lib/index.js +465 -0
  64. package/cli/node_modules/optionator/lib/util.js +54 -0
  65. package/cli/node_modules/optionator/package.json +44 -0
  66. package/cli/node_modules/prelude-ls/CHANGELOG.md +99 -0
  67. package/cli/node_modules/prelude-ls/LICENSE +22 -0
  68. package/cli/node_modules/prelude-ls/README.md +15 -0
  69. package/cli/node_modules/prelude-ls/lib/Func.js +65 -0
  70. package/cli/node_modules/prelude-ls/lib/List.js +686 -0
  71. package/cli/node_modules/prelude-ls/lib/Num.js +130 -0
  72. package/cli/node_modules/prelude-ls/lib/Obj.js +154 -0
  73. package/cli/node_modules/prelude-ls/lib/Str.js +92 -0
  74. package/cli/node_modules/prelude-ls/lib/index.js +178 -0
  75. package/cli/node_modules/prelude-ls/package.json +52 -0
  76. package/cli/node_modules/requizzle/package.json +52 -21
  77. package/cli/node_modules/source-map/package.json +197 -54
  78. package/cli/node_modules/strip-json-comments/package.json +80 -45
  79. package/cli/node_modules/tmp/README.md +47 -21
  80. package/cli/node_modules/tmp/lib/tmp.js +209 -147
  81. package/cli/node_modules/tmp/package.json +73 -37
  82. package/cli/node_modules/type-check/LICENSE +22 -0
  83. package/cli/node_modules/type-check/README.md +210 -0
  84. package/cli/node_modules/type-check/lib/check.js +126 -0
  85. package/cli/node_modules/type-check/lib/index.js +16 -0
  86. package/cli/node_modules/type-check/lib/parse-type.js +196 -0
  87. package/cli/node_modules/type-check/package.json +40 -0
  88. package/cli/node_modules/uc.micro/package.json +45 -9
  89. package/cli/node_modules/underscore/package.json +95 -61
  90. package/cli/node_modules/word-wrap/LICENSE +21 -0
  91. package/cli/node_modules/word-wrap/README.md +201 -0
  92. package/cli/node_modules/word-wrap/index.d.ts +50 -0
  93. package/cli/node_modules/word-wrap/index.js +61 -0
  94. package/cli/node_modules/word-wrap/package.json +77 -0
  95. package/cli/node_modules/wrappy/package.json +46 -16
  96. package/cli/node_modules/xmlcreate/package.json +87 -55
  97. package/cli/package-lock.json +842 -0
  98. package/cli/package.json +1 -1
  99. package/dist/light/protobuf.js +3 -2
  100. package/dist/light/protobuf.js.map +1 -1
  101. package/dist/light/protobuf.min.js +3 -3
  102. package/dist/light/protobuf.min.js.map +1 -1
  103. package/dist/minimal/protobuf.js +2 -2
  104. package/dist/minimal/protobuf.min.js +3 -3
  105. package/dist/minimal/protobuf.min.js.map +1 -1
  106. package/dist/protobuf.js +3 -2
  107. package/dist/protobuf.js.map +1 -1
  108. package/dist/protobuf.min.js +3 -3
  109. package/dist/protobuf.min.js.map +1 -1
  110. package/package.json +1 -1
  111. package/src/type.js +1 -0
  112. package/cli/node_modules/rimraf/CHANGELOG.md +0 -65
  113. package/cli/node_modules/rimraf/LICENSE +0 -15
  114. package/cli/node_modules/rimraf/README.md +0 -101
  115. package/cli/node_modules/rimraf/bin.js +0 -68
  116. package/cli/node_modules/rimraf/package.json +0 -32
  117. package/cli/node_modules/rimraf/rimraf.js +0 -360
  118. package/cli/node_modules/tmp/CHANGELOG.md +0 -288
@@ -1,24 +1,58 @@
1
1
  {
2
- "name": "underscore",
3
- "description": "JavaScript's functional programming helper library.",
4
- "version": "1.13.4",
5
- "author": "Jeremy Ashkenas <jeremy@documentcloud.org>",
6
- "license": "MIT",
7
- "homepage": "https://underscorejs.org",
8
- "repository": {
9
- "type": "git",
10
- "url": "git://github.com/jashkenas/underscore.git"
2
+ "_args": [
3
+ [
4
+ "underscore@1.13.4",
5
+ "/Users/fenster/dev/protobuf.js/cli"
6
+ ]
7
+ ],
8
+ "_from": "underscore@1.13.4",
9
+ "_id": "underscore@1.13.4",
10
+ "_inBundle": false,
11
+ "_integrity": "sha512-BQFnUDuAQ4Yf/cYY5LNrK9NCJFKriaRbD9uR1fTeXnBeoa97W0i41qkZfGO9pSo8I5KzjAcSY2XYtdf0oKd7KQ==",
12
+ "_location": "/underscore",
13
+ "_phantomChildren": {},
14
+ "_requested": {
15
+ "type": "version",
16
+ "registry": true,
17
+ "raw": "underscore@1.13.4",
18
+ "name": "underscore",
19
+ "escapedName": "underscore",
20
+ "rawSpec": "1.13.4",
21
+ "saveSpec": null,
22
+ "fetchSpec": "1.13.4"
11
23
  },
12
- "keywords": [
13
- "util",
14
- "functional",
15
- "server",
16
- "client",
17
- "browser"
24
+ "_requiredBy": [
25
+ "/jsdoc"
18
26
  ],
19
- "main": "underscore-umd.js",
20
- "module": "modules/index-all.js",
21
- "type": "commonjs",
27
+ "_resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.4.tgz",
28
+ "_spec": "1.13.4",
29
+ "_where": "/Users/fenster/dev/protobuf.js/cli",
30
+ "author": {
31
+ "name": "Jeremy Ashkenas",
32
+ "email": "jeremy@documentcloud.org"
33
+ },
34
+ "bugs": {
35
+ "url": "https://github.com/jashkenas/underscore/issues"
36
+ },
37
+ "description": "JavaScript's functional programming helper library.",
38
+ "devDependencies": {
39
+ "coveralls": "^2.11.2",
40
+ "cpy-cli": "^3.1.1",
41
+ "docco": "^0.8.0",
42
+ "eslint": "^6.8.0",
43
+ "eslint-plugin-import": "^2.20.1",
44
+ "glob": "^7.1.6",
45
+ "gzip-size-cli": "^1.0.0",
46
+ "husky": "^4.2.3",
47
+ "karma": "^0.13.13",
48
+ "karma-qunit": "~2.0.1",
49
+ "karma-sauce-launcher": "^1.2.0",
50
+ "nyc": "^2.1.3",
51
+ "pretty-bytes-cli": "^1.0.0",
52
+ "qunit": "2.10.1",
53
+ "rollup": "^2.40.0",
54
+ "terser": "^4.6.13"
55
+ },
22
56
  "exports": {
23
57
  ".": {
24
58
  "import": {
@@ -49,48 +83,6 @@
49
83
  "./cjs/*": "./cjs/*",
50
84
  "./package.json": "./package.json"
51
85
  },
52
- "devDependencies": {
53
- "coveralls": "^2.11.2",
54
- "cpy-cli": "^3.1.1",
55
- "docco": "^0.8.0",
56
- "eslint": "^6.8.0",
57
- "eslint-plugin-import": "^2.20.1",
58
- "glob": "^7.1.6",
59
- "gzip-size-cli": "^1.0.0",
60
- "husky": "^4.2.3",
61
- "karma": "^0.13.13",
62
- "karma-qunit": "~2.0.1",
63
- "karma-sauce-launcher": "^1.2.0",
64
- "nyc": "^2.1.3",
65
- "pretty-bytes-cli": "^1.0.0",
66
- "qunit": "2.10.1",
67
- "rollup": "^2.40.0",
68
- "terser": "^4.6.13"
69
- },
70
- "overrides": {
71
- "colors@>1.4.0": "1.4.0"
72
- },
73
- "scripts": {
74
- "test": "npm run lint && npm run test-node",
75
- "coverage": "nyc npm run test-node && nyc report",
76
- "coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
77
- "lint": "eslint modules/*.js test/*.js",
78
- "test-node": "npm run prepare-tests && qunit test/",
79
- "test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
80
- "bundle": "rollup -c && eslint underscore-umd.js && rollup -c rollup.config2.js",
81
- "bundle-treeshake": "cd test-treeshake && rollup --config",
82
- "prepare-tests": "npm run bundle && npm run bundle-treeshake",
83
- "minify-umd": "terser underscore-umd.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
84
- "minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
85
- "module-package-json": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > modules/package.json",
86
- "build-umd": "npm run minify-umd -- --source-map content=underscore-umd.js.map --source-map-url \" \" -o underscore-umd-min.js",
87
- "build-esm": "npm run module-package-json && npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
88
- "alias-bundle": "cpy --rename=underscore.js underscore-umd.js . && cpy --rename=underscore-min.js underscore-umd-min.js . && cpy --rename=underscore-min.js.map underscore-umd-min.js.map .",
89
- "build": "npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle",
90
- "doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst",
91
- "weight": "npm run bundle && npm run minify-umd | gzip-size | pretty-bytes",
92
- "prepublishOnly": "npm run build && npm run doc"
93
- },
94
86
  "files": [
95
87
  "underscore-esm.js",
96
88
  "underscore-esm.js.map",
@@ -113,10 +105,52 @@
113
105
  "amd/",
114
106
  "cjs/"
115
107
  ],
108
+ "homepage": "https://underscorejs.org",
116
109
  "husky": {
117
110
  "hooks": {
118
111
  "pre-commit": "npm run bundle && git add underscore-umd.js underscore-umd.js.map underscore-esm.js underscore-esm.js.map underscore-node-f.cjs underscore-node-f.cjs.map underscore-node.cjs underscore-node.cjs.map underscore-node.mjs underscore-node.mjs.map",
119
112
  "post-commit": "git reset underscore-umd.js underscore-umd.js.map underscore-esm.js underscore-esm.js.map underscore-node-f.cjs underscore-node-f.cjs.map underscore-node.cjs underscore-node.cjs.map underscore-node.mjs underscore-node.mjs.map"
120
113
  }
121
- }
114
+ },
115
+ "keywords": [
116
+ "util",
117
+ "functional",
118
+ "server",
119
+ "client",
120
+ "browser"
121
+ ],
122
+ "license": "MIT",
123
+ "main": "underscore-umd.js",
124
+ "module": "modules/index-all.js",
125
+ "name": "underscore",
126
+ "overrides": {
127
+ "colors@>1.4.0": "1.4.0"
128
+ },
129
+ "repository": {
130
+ "type": "git",
131
+ "url": "git://github.com/jashkenas/underscore.git"
132
+ },
133
+ "scripts": {
134
+ "alias-bundle": "cpy --rename=underscore.js underscore-umd.js . && cpy --rename=underscore-min.js underscore-umd-min.js . && cpy --rename=underscore-min.js.map underscore-umd-min.js.map .",
135
+ "build": "npm run bundle && npm run build-umd && npm run build-esm && npm run alias-bundle",
136
+ "build-esm": "npm run module-package-json && npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
137
+ "build-umd": "npm run minify-umd -- --source-map content=underscore-umd.js.map --source-map-url \" \" -o underscore-umd-min.js",
138
+ "bundle": "rollup -c && eslint underscore-umd.js && rollup -c rollup.config2.js",
139
+ "bundle-treeshake": "cd test-treeshake && rollup --config",
140
+ "coverage": "nyc npm run test-node && nyc report",
141
+ "coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
142
+ "doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst",
143
+ "lint": "eslint modules/*.js test/*.js",
144
+ "minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
145
+ "minify-umd": "terser underscore-umd.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
146
+ "module-package-json": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > modules/package.json",
147
+ "prepare-tests": "npm run bundle && npm run bundle-treeshake",
148
+ "prepublishOnly": "npm run build && npm run doc",
149
+ "test": "npm run lint && npm run test-node",
150
+ "test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
151
+ "test-node": "npm run prepare-tests && qunit test/",
152
+ "weight": "npm run bundle && npm run minify-umd | gzip-size | pretty-bytes"
153
+ },
154
+ "type": "commonjs",
155
+ "version": "1.13.4"
122
156
  }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014-2016, Jon Schlinkert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,201 @@
1
+ # word-wrap [![NPM version](https://img.shields.io/npm/v/word-wrap.svg?style=flat)](https://www.npmjs.com/package/word-wrap) [![NPM monthly downloads](https://img.shields.io/npm/dm/word-wrap.svg?style=flat)](https://npmjs.org/package/word-wrap) [![NPM total downloads](https://img.shields.io/npm/dt/word-wrap.svg?style=flat)](https://npmjs.org/package/word-wrap) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/word-wrap.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/word-wrap)
2
+
3
+ > Wrap words to a specified length.
4
+
5
+ Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
6
+
7
+ ## Install
8
+
9
+ Install with [npm](https://www.npmjs.com/):
10
+
11
+ ```sh
12
+ $ npm install --save word-wrap
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```js
18
+ var wrap = require('word-wrap');
19
+
20
+ wrap('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.');
21
+ ```
22
+
23
+ Results in:
24
+
25
+ ```
26
+ Lorem ipsum dolor sit amet, consectetur adipiscing
27
+ elit, sed do eiusmod tempor incididunt ut labore
28
+ et dolore magna aliqua. Ut enim ad minim veniam,
29
+ quis nostrud exercitation ullamco laboris nisi ut
30
+ aliquip ex ea commodo consequat.
31
+ ```
32
+
33
+ ## Options
34
+
35
+ ![image](https://cloud.githubusercontent.com/assets/383994/6543728/7a381c08-c4f6-11e4-8b7d-b6ba197569c9.png)
36
+
37
+ ### options.width
38
+
39
+ Type: `Number`
40
+
41
+ Default: `50`
42
+
43
+ The width of the text before wrapping to a new line.
44
+
45
+ **Example:**
46
+
47
+ ```js
48
+ wrap(str, {width: 60});
49
+ ```
50
+
51
+ ### options.indent
52
+
53
+ Type: `String`
54
+
55
+ Default: `` (two spaces)
56
+
57
+ The string to use at the beginning of each line.
58
+
59
+ **Example:**
60
+
61
+ ```js
62
+ wrap(str, {indent: ' '});
63
+ ```
64
+
65
+ ### options.newline
66
+
67
+ Type: `String`
68
+
69
+ Default: `\n`
70
+
71
+ The string to use at the end of each line.
72
+
73
+ **Example:**
74
+
75
+ ```js
76
+ wrap(str, {newline: '\n\n'});
77
+ ```
78
+
79
+ ### options.escape
80
+
81
+ Type: `function`
82
+
83
+ Default: `function(str){return str;}`
84
+
85
+ An escape function to run on each line after splitting them.
86
+
87
+ **Example:**
88
+
89
+ ```js
90
+ var xmlescape = require('xml-escape');
91
+ wrap(str, {
92
+ escape: function(string){
93
+ return xmlescape(string);
94
+ }
95
+ });
96
+ ```
97
+
98
+ ### options.trim
99
+
100
+ Type: `Boolean`
101
+
102
+ Default: `false`
103
+
104
+ Trim trailing whitespace from the returned string. This option is included since `.trim()` would also strip the leading indentation from the first line.
105
+
106
+ **Example:**
107
+
108
+ ```js
109
+ wrap(str, {trim: true});
110
+ ```
111
+
112
+ ### options.cut
113
+
114
+ Type: `Boolean`
115
+
116
+ Default: `false`
117
+
118
+ Break a word between any two letters when the word is longer than the specified width.
119
+
120
+ **Example:**
121
+
122
+ ```js
123
+ wrap(str, {cut: true});
124
+ ```
125
+
126
+ ## About
127
+
128
+ <details>
129
+ <summary><strong>Contributing</strong></summary>
130
+
131
+ Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
132
+
133
+ </details>
134
+
135
+ <details>
136
+ <summary><strong>Running Tests</strong></summary>
137
+
138
+ Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
139
+
140
+ ```sh
141
+ $ npm install && npm test
142
+ ```
143
+
144
+ </details>
145
+
146
+ <details>
147
+ <summary><strong>Building docs</strong></summary>
148
+
149
+ _(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
150
+
151
+ To generate the readme, run the following command:
152
+
153
+ ```sh
154
+ $ npm install -g verbose/verb#dev verb-generate-readme && verb
155
+ ```
156
+
157
+ </details>
158
+
159
+ ### Related projects
160
+
161
+ You might also be interested in these projects:
162
+
163
+ * [common-words](https://www.npmjs.com/package/common-words): Updated list (JSON) of the 100 most common words in the English language. Useful for… [more](https://github.com/jonschlinkert/common-words) | [homepage](https://github.com/jonschlinkert/common-words "Updated list (JSON) of the 100 most common words in the English language. Useful for excluding these words from arrays.")
164
+ * [shuffle-words](https://www.npmjs.com/package/shuffle-words): Shuffle the words in a string and optionally the letters in each word using the… [more](https://github.com/jonschlinkert/shuffle-words) | [homepage](https://github.com/jonschlinkert/shuffle-words "Shuffle the words in a string and optionally the letters in each word using the Fisher-Yates algorithm. Useful for creating test fixtures, benchmarking samples, etc.")
165
+ * [unique-words](https://www.npmjs.com/package/unique-words): Returns an array of unique words, or the number of occurrences of each word in… [more](https://github.com/jonschlinkert/unique-words) | [homepage](https://github.com/jonschlinkert/unique-words "Returns an array of unique words, or the number of occurrences of each word in a string or list.")
166
+ * [wordcount](https://www.npmjs.com/package/wordcount): Count the words in a string. Support for english, CJK and Cyrillic. | [homepage](https://github.com/jonschlinkert/wordcount "Count the words in a string. Support for english, CJK and Cyrillic.")
167
+
168
+ ### Contributors
169
+
170
+ | **Commits** | **Contributor** |
171
+ | --- | --- |
172
+ | 47 | [jonschlinkert](https://github.com/jonschlinkert) |
173
+ | 7 | [OlafConijn](https://github.com/OlafConijn) |
174
+ | 3 | [doowb](https://github.com/doowb) |
175
+ | 2 | [aashutoshrathi](https://github.com/aashutoshrathi) |
176
+ | 2 | [lordvlad](https://github.com/lordvlad) |
177
+ | 2 | [hildjj](https://github.com/hildjj) |
178
+ | 1 | [danilosampaio](https://github.com/danilosampaio) |
179
+ | 1 | [2fd](https://github.com/2fd) |
180
+ | 1 | [leonard-thieu](https://github.com/leonard-thieu) |
181
+ | 1 | [mohd-akram](https://github.com/mohd-akram) |
182
+ | 1 | [toddself](https://github.com/toddself) |
183
+ | 1 | [wolfgang42](https://github.com/wolfgang42) |
184
+ | 1 | [zachhale](https://github.com/zachhale) |
185
+
186
+ ### Author
187
+
188
+ **Jon Schlinkert**
189
+
190
+ * [GitHub Profile](https://github.com/jonschlinkert)
191
+ * [Twitter Profile](https://twitter.com/jonschlinkert)
192
+ * [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
193
+
194
+ ### License
195
+
196
+ Copyright © 2023, [Jon Schlinkert](https://github.com/jonschlinkert).
197
+ Released under the [MIT License](LICENSE).
198
+
199
+ ***
200
+
201
+ _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on July 22, 2023._
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Wrap words to a specified length.
3
+ */
4
+ export = wrap;
5
+
6
+ declare function wrap(str: string, options?: wrap.IOptions): string;
7
+
8
+ declare namespace wrap {
9
+ export interface IOptions {
10
+
11
+ /**
12
+ * The width of the text before wrapping to a new line.
13
+ * @default ´50´
14
+ */
15
+ width?: number;
16
+
17
+ /**
18
+ * The string to use at the beginning of each line.
19
+ * @default ´ ´ (two spaces)
20
+ */
21
+ indent?: string;
22
+
23
+ /**
24
+ * The string to use at the end of each line.
25
+ * @default ´\n´
26
+ */
27
+ newline?: string;
28
+
29
+ /**
30
+ * An escape function to run on each line after splitting them.
31
+ * @default (str: string) => string;
32
+ */
33
+ escape?: (str: string) => string;
34
+
35
+ /**
36
+ * Trim trailing whitespace from the returned string.
37
+ * This option is included since .trim() would also strip
38
+ * the leading indentation from the first line.
39
+ * @default true
40
+ */
41
+ trim?: boolean;
42
+
43
+ /**
44
+ * Break a word between any two letters when the word is longer
45
+ * than the specified width.
46
+ * @default false
47
+ */
48
+ cut?: boolean;
49
+ }
50
+ }
@@ -0,0 +1,61 @@
1
+ /*!
2
+ * word-wrap <https://github.com/jonschlinkert/word-wrap>
3
+ *
4
+ * Copyright (c) 2014-2023, Jon Schlinkert.
5
+ * Released under the MIT License.
6
+ */
7
+
8
+ function trimEnd(str) {
9
+ let lastCharPos = str.length - 1;
10
+ let lastChar = str[lastCharPos];
11
+ while(lastChar === ' ' || lastChar === '\t') {
12
+ lastChar = str[--lastCharPos];
13
+ }
14
+ return str.substring(0, lastCharPos + 1);
15
+ }
16
+
17
+ function trimTabAndSpaces(str) {
18
+ const lines = str.split('\n');
19
+ const trimmedLines = lines.map((line) => trimEnd(line));
20
+ return trimmedLines.join('\n');
21
+ }
22
+
23
+ module.exports = function(str, options) {
24
+ options = options || {};
25
+ if (str == null) {
26
+ return str;
27
+ }
28
+
29
+ var width = options.width || 50;
30
+ var indent = (typeof options.indent === 'string')
31
+ ? options.indent
32
+ : ' ';
33
+
34
+ var newline = options.newline || '\n' + indent;
35
+ var escape = typeof options.escape === 'function'
36
+ ? options.escape
37
+ : identity;
38
+
39
+ var regexString = '.{1,' + width + '}';
40
+ if (options.cut !== true) {
41
+ regexString += '([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)';
42
+ }
43
+
44
+ var re = new RegExp(regexString, 'g');
45
+ var lines = str.match(re) || [];
46
+ var result = indent + lines.map(function(line) {
47
+ if (line.slice(-1) === '\n') {
48
+ line = line.slice(0, line.length - 1);
49
+ }
50
+ return escape(line);
51
+ }).join(newline);
52
+
53
+ if (options.trim === true) {
54
+ result = trimTabAndSpaces(result);
55
+ }
56
+ return result;
57
+ };
58
+
59
+ function identity(str) {
60
+ return str;
61
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "word-wrap",
3
+ "description": "Wrap words to a specified length.",
4
+ "version": "1.2.5",
5
+ "homepage": "https://github.com/jonschlinkert/word-wrap",
6
+ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",
7
+ "contributors": [
8
+ "Danilo Sampaio <danilo.sampaio@gmail.com> (localhost:8080)",
9
+ "Fede Ramirez <i@2fd.me> (https://2fd.github.io)",
10
+ "Joe Hildebrand <joe-github@cursive.net> (https://twitter.com/hildjj)",
11
+ "Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
12
+ "Todd Kennedy (https://tck.io)",
13
+ "Waldemar Reusch (https://github.com/lordvlad)",
14
+ "Wolfgang Faust (http://www.linestarve.com)",
15
+ "Zach Hale <zachhale@gmail.com> (http://zachhale.com)"
16
+ ],
17
+ "repository": "jonschlinkert/word-wrap",
18
+ "bugs": {
19
+ "url": "https://github.com/jonschlinkert/word-wrap/issues"
20
+ },
21
+ "license": "MIT",
22
+ "files": [
23
+ "index.js",
24
+ "index.d.ts"
25
+ ],
26
+ "main": "index.js",
27
+ "engines": {
28
+ "node": ">=0.10.0"
29
+ },
30
+ "scripts": {
31
+ "test": "mocha"
32
+ },
33
+ "devDependencies": {
34
+ "gulp-format-md": "^0.1.11",
35
+ "mocha": "^3.2.0"
36
+ },
37
+ "keywords": [
38
+ "break",
39
+ "carriage",
40
+ "line",
41
+ "new-line",
42
+ "newline",
43
+ "return",
44
+ "soft",
45
+ "text",
46
+ "word",
47
+ "word-wrap",
48
+ "words",
49
+ "wrap"
50
+ ],
51
+ "typings": "index.d.ts",
52
+ "verb": {
53
+ "toc": false,
54
+ "layout": "default",
55
+ "tasks": [
56
+ "readme"
57
+ ],
58
+ "plugins": [
59
+ "gulp-format-md"
60
+ ],
61
+ "lint": {
62
+ "reflinks": true
63
+ },
64
+ "related": {
65
+ "list": [
66
+ "common-words",
67
+ "shuffle-words",
68
+ "unique-words",
69
+ "wordcount"
70
+ ]
71
+ },
72
+ "reflinks": [
73
+ "verb",
74
+ "verb-generate-readme"
75
+ ]
76
+ }
77
+ }
@@ -1,29 +1,59 @@
1
1
  {
2
- "name": "wrappy",
3
- "version": "1.0.2",
4
- "description": "Callback wrapping utility",
5
- "main": "wrappy.js",
6
- "files": [
7
- "wrappy.js"
2
+ "_from": "wrappy@1",
3
+ "_id": "wrappy@1.0.2",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
6
+ "_location": "/wrappy",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "wrappy@1",
12
+ "name": "wrappy",
13
+ "escapedName": "wrappy",
14
+ "rawSpec": "1",
15
+ "saveSpec": null,
16
+ "fetchSpec": "1"
17
+ },
18
+ "_requiredBy": [
19
+ "/inflight",
20
+ "/once"
8
21
  ],
9
- "directories": {
10
- "test": "test"
22
+ "_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
23
+ "_shasum": "b5243d8f3ec1aa35f1364605bc0d1036e30ab69f",
24
+ "_spec": "wrappy@1",
25
+ "_where": "/Users/fenster/dev/protobuf.js/cli/node_modules/inflight",
26
+ "author": {
27
+ "name": "Isaac Z. Schlueter",
28
+ "email": "i@izs.me",
29
+ "url": "http://blog.izs.me/"
30
+ },
31
+ "bugs": {
32
+ "url": "https://github.com/npm/wrappy/issues"
11
33
  },
34
+ "bundleDependencies": false,
12
35
  "dependencies": {},
36
+ "deprecated": false,
37
+ "description": "Callback wrapping utility",
13
38
  "devDependencies": {
14
39
  "tap": "^2.3.1"
15
40
  },
16
- "scripts": {
17
- "test": "tap --coverage test/*.js"
41
+ "directories": {
42
+ "test": "test"
18
43
  },
44
+ "files": [
45
+ "wrappy.js"
46
+ ],
47
+ "homepage": "https://github.com/npm/wrappy",
48
+ "license": "ISC",
49
+ "main": "wrappy.js",
50
+ "name": "wrappy",
19
51
  "repository": {
20
52
  "type": "git",
21
- "url": "https://github.com/npm/wrappy"
53
+ "url": "git+https://github.com/npm/wrappy.git"
22
54
  },
23
- "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
24
- "license": "ISC",
25
- "bugs": {
26
- "url": "https://github.com/npm/wrappy/issues"
55
+ "scripts": {
56
+ "test": "tap --coverage test/*.js"
27
57
  },
28
- "homepage": "https://github.com/npm/wrappy"
58
+ "version": "1.0.2"
29
59
  }