Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 1e996f2

Browse files
committed
Merge gitbook into master
2 parents 9a63535 + d87ddb7 commit 1e996f2

File tree

2 files changed

+62
-43
lines changed

2 files changed

+62
-43
lines changed

SUMMARY.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Summary
2+
3+
## Overview
4+
5+
* [Introduction](README.md)
6+
7+
## Documentation
8+
9+
* [Overview](docs/README.md)
10+
* [Modules](docs/modules.md)
11+
* [Collections](docs/array.md)
12+
* [Boolean](docs/boolean.md)
13+
* [Math](docs/math.md)
14+
* [Aggregate](docs/aggregate.md)
15+
* [String](docs/string.md)
16+
* [Object](docs/object.md)
17+
18+
## Build
19+
20+
* [Bundles](docs/bundles.md)
21+
* [ESM](docs/esm.md)
22+
23+
## Other
24+
25+
* [Contribute](CONTRIBUTING.md)
26+
* [Changelog](CHANGELOG.md)
27+
* [License](LICENSE.md)
28+

docs/string.md

Lines changed: 34 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
You can check the module import [`here`](./modules.md).
2727

28-
####leftpad
28+
#### leftpad
2929

3030
Returns a left-padded string.
3131

@@ -43,8 +43,7 @@ import { LeftPadPipe } from 'angular-pipes/src/string/left-pad.pipe';
4343
{{ 'aaa' | leftpad: 5: 'b' }} <!-- 'bbaaa' -->
4444
```
4545

46-
47-
####rightpad
46+
#### rightpad
4847

4948
Returns a right-padded string.
5049

@@ -62,7 +61,7 @@ import { RightPadPipe } from 'angular-pipes/src/string/right-pad.pipe';
6261
{{ 'aaa' | rightpad: 5: 'b' }} <!-- 'aaabb' -->
6362
```
6463

65-
####pad
64+
#### pad
6665

6766
Returns a padded string. It starts with left and then right.
6867

@@ -80,8 +79,7 @@ import { PadPipe } from 'angular-pipes/src/string/pad.pipe';
8079
{{ 'aaa' | pad: 5: 'b' }} <!-- 'baaab' -->
8180
```
8281

83-
84-
####trim
82+
#### trim
8583

8684
Trims the string.
8785

@@ -99,8 +97,7 @@ import { TrimPipe } from 'angular-pipes/src/string/trim.pipe';
9997
{{ ' aaa ' | trim }} <!-- 'aaa' -->
10098
```
10199

102-
103-
####split
100+
#### split
104101

105102
Split a string into an array.
106103

@@ -118,8 +115,7 @@ import { SplitPipe } from 'angular-pipes/src/string/split.pipe';
118115
{{ 'ABABA' | split: 'B': 2 }} <!-- ['A', 'A'] -->
119116
```
120117

121-
122-
####replace
118+
#### replace
123119

124120
This is the `String#replace()` function, if you want to know more about the arguments, check the official documentation.
125121

@@ -129,8 +125,7 @@ This is the `String#replace()` function, if you want to know more about the argu
129125
import { ReplacePipe } from 'angular-pipes/src/string/replace.pipe';
130126
```
131127

132-
133-
####match
128+
#### match
134129

135130
This is the `String#match()` function, if you want to know more about the arguments, check the official documentation.
136131

@@ -140,8 +135,7 @@ This is the `String#match()` function, if you want to know more about the argume
140135
import { MatchPipe } from 'angular-pipes/src/string/match.pipe';
141136
```
142137

143-
144-
####test
138+
#### test
145139

146140
This is the `String#test()` function, if you want to know more about the arguments, check the official documentation.
147141

@@ -151,10 +145,9 @@ This is the `String#test()` function, if you want to know more about the argumen
151145
import { TestPipe } from 'angular-pipes/src/string/test.pipe';
152146
```
153147

148+
#### newlines
154149

155-
####newlines
156-
157-
Replaces the `\n`, `\r` and `\r\n` into `<br />`. This function returns HTML so you need to use it
150+
Replaces the `\n`, `\r` and `\r\n` into `<br />`. This function returns HTML so you need to use it
158151
with the `[innerHTML]` binding.
159152

160153
##### File
@@ -163,7 +156,6 @@ with the `[innerHTML]` binding.
163156
import { NewlinesPipe } from 'angular-pipes/src/string/newlines.pipe';
164157
```
165158

166-
167159
##### Usage
168160

169161
```javascript
@@ -185,8 +177,7 @@ How are you ?
185177
-->
186178
```
187179

188-
189-
####capitalize
180+
#### capitalize
190181

191182
Capitalize the string. If the argument is true, all the words will be capitalized.
192183

@@ -204,8 +195,7 @@ import { CapitalizePipe } from 'angular-pipes/src/string/capitalize.pipe';
204195
{{ 'hELLo wOrld' | capitalize: true }} <!-- 'Hello World' -->
205196
```
206197

207-
208-
####upperfirst
198+
#### upperfirst
209199

210200
Uppercase the first letter.
211201

@@ -221,8 +211,7 @@ import { UpperFirstPipe } from 'angular-pipes/src/string/upperfirst.pipe';
221211
{{ 'hello world' | upperfirst }} <!-- 'Hello world' -->
222212
```
223213

224-
225-
####template
214+
#### template
226215

227216
Template string.
228217

@@ -238,8 +227,7 @@ import { TemplatePipe } from 'angular-pipes/src/string/template.pipe';
238227
{{ "Hello $1, it's $2" | template: 'world': 'me' }} <!-- 'Hello world, it's me' -->
239228
```
240229

241-
242-
####encodeuri
230+
#### encodeuri
243231

244232
The encodeURI function.
245233

@@ -249,8 +237,7 @@ The encodeURI function.
249237
import { EncodeURIPipe } from 'angular-pipes/src/string/encode-uri.pipe';
250238
```
251239

252-
253-
####encodeuricomponent
240+
#### encodeuricomponent
254241

255242
The encodeURIComponent function.
256243

@@ -260,7 +247,7 @@ The encodeURIComponent function.
260247
import { EncodeURIComponentPipe } from 'angular-pipes/src/string/encode-uri-component.pipe';
261248
```
262249

263-
####repeat
250+
#### repeat
264251

265252
Repeats a string.
266253

@@ -277,11 +264,11 @@ import { RepeatPipe } from 'angular-pipes/src/string/repeat.pipe';
277264
{{ 'a' | repeat: 2: 'b' }} <!-- 'aba' -->
278265
```
279266

280-
####truncate
267+
#### truncate
281268

282269
Truncate a string.
283270

284-
Arguments: (size, suffix, preserve)
271+
Arguments: \(size, suffix, preserve\)
285272

286273
##### File
287274

@@ -298,11 +285,11 @@ import { TruncatePipe } from 'angular-pipes/src/string/truncate.pipe';
298285
{{ 'Hello World, how is it going?' | truncate: 14: '...', true }} <!-- 'Hello World, how...' -->
299286
```
300287

301-
####slugify
288+
#### slugify
302289

303290
Slugify a string.
304291

305-
Arguments: (string)
292+
Arguments: \(string\)
306293

307294
##### File
308295

@@ -316,13 +303,12 @@ import { SlugifyPipe } from 'angular-pipes/src/string/slugify.pipe';
316303
{{ 'The zombie world war began' | slugify }} <!-- 'the-zombie-world-war-began' -->
317304
```
318305

319-
####striptags
306+
#### striptags
320307

321-
strip out html tags from string
308+
strip out html tags from string
322309
**Important: this Pipe jobs it's not to replace innerHtml directive, it's only for tiny plain text**
323310

324-
325-
Arguments: ( string, ends, case-sensitive[optional] )
311+
Arguments: \( string, ends, case-sensitive\[optional\] \)
326312

327313
##### File
328314

@@ -338,7 +324,7 @@ var text = '<p class="paragraph">Lorem Ipsum is simply dummy text of the printin
338324
<!--result: Lorem Ipsum is simply dummy text of the printing... -->
339325
```
340326

341-
####latinize
327+
#### latinize
342328

343329
Remove accents/diacritics from a string
344330

@@ -355,10 +341,11 @@ import { latinize } from 'angular-pipes/src/string/latinize.pipe';
355341
<!-- result: Some strIng with Accents -->
356342
```
357343

358-
####wrap
344+
#### wrap
345+
359346
Wrap a string with another string
360347

361-
Arguments: ( string, string, string[optional] )
348+
Arguments: \( string, string, string\[optional\] \)
362349

363350
##### File
364351

@@ -373,10 +360,11 @@ import { WrapPipe } from 'angular-pipes/src/string/wrap.pipe';
373360
<p>{{ 'foo' | wrap: '{{': '}}' }}</p> <!--result: {{foo}} -->
374361
```
375362

376-
####with
363+
#### with
364+
377365
With pipe check string has start and/or ends
378366

379-
Arguments: ( string, start[optional], ends[optional], case-sensitive[optional] )
367+
Arguments: \( string, start\[optional\], ends\[optional\], case-sensitive\[optional\] \)
380368

381369
##### File
382370

@@ -402,7 +390,7 @@ import { WithPipe } from 'angular-pipes/src/string/with.pipe';
402390
{{'The Flash Reverse' | with}} <!-- result: 'The Flash Reverse'-->
403391
```
404392

405-
####reversestr
393+
#### reversestr
406394

407395
Reverse a string.
408396

@@ -417,3 +405,6 @@ import { ReverseStrPipe } from 'angular-pipes/src/string/reverse-str.pipe';
417405
```html
418406
{{ 'hello world' | reverseStr }} <!-- 'dlrow olleh' -->
419407
```
408+
409+
410+

0 commit comments

Comments
 (0)