You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If expected `width` is not provided, the _length of the longest line_ will be used.
37
+
19
38
**Example**
20
39
21
40
If used on the following:
22
41
23
-
```
24
-
Lorem ipsum dolor sit amet,
25
-
consectetur adipiscing
26
-
elit, sed do eiusmod tempor incididunt
27
-
ut labore et dolore
28
-
magna aliqua. Ut enim ad minim
29
-
veniam, quis
42
+
```js
43
+
// value can be a string, or an array of strings
44
+
center([
45
+
'Lorem ipsum dolor sit amet,',
46
+
'consectetur adipiscing',
47
+
'elit, sed do eiusmod tempor incididunt',
48
+
'ut labore et dolore',
49
+
'magna aliqua. Ut enim ad minim',
50
+
'veniam, quis'
51
+
]);
30
52
```
31
53
32
54
The result would be:
@@ -55,34 +77,34 @@ Pull requests and stars are always welcome. For bugs and feature requests, [plea
55
77
56
78
### Building docs
57
79
58
-
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
80
+
_(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.)_
59
81
60
-
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
82
+
To generate the readme, run the following command:
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:
0 commit comments