couleurs 6.0.7 → 6.0.11
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.
- package/LICENSE +1 -1
- package/README.md +162 -39
- package/lib/index.js +0 -0
- package/package.json +6 -3
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2014-
|
|
3
|
+
Copyright (c) 2014-20 Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,21 +1,78 @@
|
|
|
1
|
+
<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
|
|
2
10
|
[](#)
|
|
3
11
|
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
4
22
|
# couleurs
|
|
5
23
|
|
|
6
|
-
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [](https://travis-ci.org/IonicaBizau/node-couleurs/) [](https://www.npmjs.com/package/couleurs) [](https://www.npmjs.com/package/couleurs)
|
|
24
|
+
[![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [](https://github.com/IonicaBizau/ama) [](https://travis-ci.org/IonicaBizau/node-couleurs/) [](https://www.npmjs.com/package/couleurs) [](https://www.npmjs.com/package/couleurs) [](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)
|
|
25
|
+
|
|
26
|
+
<a href="https://www.buymeacoffee.com/H96WwChMy" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee"></a>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
7
33
|
|
|
8
34
|
> Add some color and styles to your Node.JS strings.
|
|
9
35
|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
10
46
|
[](#)
|
|
11
47
|
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
12
54
|
## :cloud: Installation
|
|
13
55
|
|
|
14
56
|
```sh
|
|
15
|
-
|
|
57
|
+
# Using npm
|
|
58
|
+
npm install --save couleurs
|
|
59
|
+
|
|
60
|
+
# Using yarn
|
|
61
|
+
yarn add couleurs
|
|
16
62
|
```
|
|
17
63
|
|
|
18
64
|
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
19
76
|
## :clipboard: Example
|
|
20
77
|
|
|
21
78
|
|
|
@@ -58,12 +115,37 @@ console.log("All combined"
|
|
|
58
115
|
);
|
|
59
116
|
```
|
|
60
117
|
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
## :question: Get Help
|
|
129
|
+
|
|
130
|
+
There are few ways to get help:
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.
|
|
135
|
+
2. For bug reports and feature requests, open issues. :bug:
|
|
136
|
+
3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
61
142
|
## :memo: Documentation
|
|
62
143
|
|
|
63
144
|
|
|
64
145
|
### `Couleurs(setStringProto, fg)`
|
|
65
146
|
|
|
66
147
|
#### Params
|
|
148
|
+
|
|
67
149
|
- **Boolean** `setStringProto`: If `true`, the prototype of String class will be modified.
|
|
68
150
|
- **String|Array** `fg`: An optional foreground color.
|
|
69
151
|
|
|
@@ -91,72 +173,113 @@ Modifies the `String` prototype to contain the `Couleurs` methods.
|
|
|
91
173
|
|
|
92
174
|
|
|
93
175
|
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
94
187
|
## :yum: How to contribute
|
|
95
188
|
Have an idea? Found a bug? See [how to contribute][contributing].
|
|
96
189
|
|
|
97
190
|
|
|
98
191
|
## :sparkling_heart: Support my projects
|
|
99
|
-
|
|
100
|
-
I open-source almost everything I can, and I try to reply everyone needing help using these projects. Obviously,
|
|
192
|
+
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
|
|
101
193
|
this takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).
|
|
102
194
|
|
|
103
195
|
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
|
|
104
196
|
|
|
197
|
+
|
|
105
198
|
- Starring and sharing the projects you like :rocket:
|
|
199
|
+
- [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:
|
|
106
200
|
- [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:
|
|
107
201
|
- [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
|
|
108
202
|
- **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`
|
|
109
203
|
|
|
110
204
|

|
|
111
205
|
|
|
206
|
+
|
|
112
207
|
Thanks! :heart:
|
|
113
208
|
|
|
114
209
|
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
115
224
|
## :dizzy: Where is this library used?
|
|
116
225
|
If you are using this library in one of your projects, add it in this list. :sparkles:
|
|
117
226
|
|
|
227
|
+
- `bug-killer`
|
|
228
|
+
- `asciify-image`
|
|
229
|
+
- `cli-pie`
|
|
230
|
+
- `overlap`
|
|
231
|
+
- `color-it`
|
|
232
|
+
- `git-stats-colors`
|
|
233
|
+
- `cli-gh-cal`
|
|
234
|
+
- `cute-logger`
|
|
235
|
+
- `cli-confeti`
|
|
236
|
+
- `asciify-pixel`
|
|
237
|
+
- `bible`
|
|
238
|
+
- `fb-falafel`
|
|
239
|
+
- `git-issues1`
|
|
240
|
+
- `closeheat`
|
|
241
|
+
- `csk-cli`
|
|
242
|
+
- `tithe`
|
|
243
|
+
- `image-asciify-cli`
|
|
244
|
+
- `bloggify-tools`
|
|
245
|
+
- `3abn`
|
|
246
|
+
- `birthday`
|
|
247
|
+
- `cli-confetti`
|
|
248
|
+
- `cli-github`
|
|
249
|
+
- `cli-sunset`
|
|
250
|
+
- `git-unsaved`
|
|
251
|
+
- `idea`
|
|
252
|
+
- `github-emojify`
|
|
253
|
+
- `github-stats`
|
|
254
|
+
- `git-issues`
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
118
264
|
|
|
119
|
-
- [`3abn`](https://github.com/IonicaBizau/3abn#readme)—A 3ABN radio client in the terminal.
|
|
120
|
-
- [`asciify-image`](https://github.com/ajay-gandhi/asciify-image) (by Ajay Gandhi)—Convert images to ASCII art without native dependencies
|
|
121
|
-
- [`asciify-pixel`](https://github.com/IonicaBizau/asciify-pixel#readme)—Asciifies a pixel object.
|
|
122
|
-
- [`bible`](https://github.com/BibleJS/BibleApp)—Read the Holy Bible via the command line.
|
|
123
|
-
- [`birthday`](https://github.com/IonicaBizau/birthday)—Know when a friend's birthday is coming.
|
|
124
|
-
- [`bloggify-tools`](https://github.com/Bloggify/bloggify-tools)—Interactive command line tool to help you win at Bloggify.
|
|
125
|
-
- [`bug-killer`](https://github.com/IonicaBizau/node-bug-killer)—Simple way to log messages in stdout or other stream.
|
|
126
|
-
- [`cli-confeti`](https://github.com/IonicaBizau/cli-confeti#readme)—Confeti in your terminal.
|
|
127
|
-
- [`cli-confetti`](https://github.com/IonicaBizau/cli-confetti#readme)—Confetti in your terminal.
|
|
128
|
-
- [`cli-gh-cal`](https://github.com/IonicaBizau/cli-gh-cal)—GitHub like calendar graphs in command line.
|
|
129
|
-
- [`cli-github`](https://github.com/IonicaBizau/cli-github)—A fancy GitHub client for command line.
|
|
130
|
-
- [`cli-pie`](https://github.com/IonicaBizau/node-cli-pie)—Generate pie charts in terminal and text mode.
|
|
131
|
-
- [`cli-sunset`](https://github.com/IonicaBizau/cli-sunset)—A fancy command line tool for knowing the sunset time.
|
|
132
|
-
- [`closeheat`](https://github.com/closeheat/cli) (by Domas Bitvinskas)—Static Website Hosting with CMS without touching your code.
|
|
133
|
-
- [`color-it`](https://github.com/IonicaBizau/node-color-it#readme)—Flat colors for your Node.js strings.
|
|
134
|
-
- [`csk-cli`](https://github.com/joshumax/csk-cli) (by Josh Max)—A command-line client to ClearDarkSky.com, written in Node.js
|
|
135
|
-
- [`fb-falafel`](https://fb-falafel.ml) (by Ajay and Kevin)—Facebook for the 1337
|
|
136
|
-
- [`git-issues`](https://github.com/softwarescales/git-issues) (by Gabriel Petrovay)—Git issues extension to list issues of a Git project
|
|
137
|
-
- [`git-issues1`](https://github.com/softwarescales/git-issues) (by Gabriel Petrovay)—Git issues extension to list issues of a Git project
|
|
138
|
-
- [`git-stats-colors`](https://github.com/IonicaBizau/node-git-stats-colors)—Adds colors to the git-stats inputs.
|
|
139
|
-
- [`git-unsaved`](https://github.com/IonicaBizau/git-unsaved#readme)—Scan your projects directory for dirty git repositories.
|
|
140
|
-
- [`github-emojify`](https://github.com/IonicaBizau/github-emojifiy#readme)—Emojify your GitHub repository descriptions.
|
|
141
|
-
- [`github-stats`](https://github.com/IonicaBizau/github-stats)—Visualize stats about GitHub users and projects in your terminal.
|
|
142
|
-
- [`idea`](https://github.com/IonicaBizau/idea)—A lightweight CLI tool and module for keeping ideas in a safe place quick and easy.
|
|
143
|
-
- [`overlap`](https://github.com/IonicaBizau/node-overlap)—Overlap two strings that contain new lines. Useful for ASCII drawings.
|
|
144
|
-
- [`tithe`](https://github.com/IonicaBizau/tithe)—Organize and track the tithe payments.
|
|
145
265
|
|
|
146
266
|
## :scroll: License
|
|
147
267
|
|
|
148
268
|
[MIT][license] © [Ionică Bizău][website]
|
|
149
269
|
|
|
150
|
-
[badge_patreon]: http://ionicabizau.github.io/badges/patreon.svg
|
|
151
|
-
[badge_amazon]: http://ionicabizau.github.io/badges/amazon.svg
|
|
152
|
-
[badge_paypal]: http://ionicabizau.github.io/badges/paypal.svg
|
|
153
|
-
[badge_paypal_donate]: http://ionicabizau.github.io/badges/paypal_donate.svg
|
|
154
|
-
[patreon]: https://www.patreon.com/ionicabizau
|
|
155
|
-
[amazon]: http://amzn.eu/hRo9sIZ
|
|
156
|
-
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
|
|
157
|
-
[donate-now]: http://i.imgur.com/6cMbHOC.png
|
|
158
270
|
|
|
159
|
-
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
[license]: /LICENSE
|
|
160
276
|
[website]: https://ionicabizau.net
|
|
161
277
|
[contributing]: /CONTRIBUTING.md
|
|
162
278
|
[docs]: /DOCUMENTATION.md
|
|
279
|
+
[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg
|
|
280
|
+
[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg
|
|
281
|
+
[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg
|
|
282
|
+
[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg
|
|
283
|
+
[patreon]: https://www.patreon.com/ionicabizau
|
|
284
|
+
[amazon]: http://amzn.eu/hRo9sIZ
|
|
285
|
+
[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW
|
package/lib/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couleurs",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.11",
|
|
4
4
|
"description": "Add some color and styles to your Node.JS strings.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -50,6 +50,9 @@
|
|
|
50
50
|
"resources/",
|
|
51
51
|
"menu/",
|
|
52
52
|
"cli.js",
|
|
53
|
-
"index.js"
|
|
53
|
+
"index.js",
|
|
54
|
+
"bloggify.js",
|
|
55
|
+
"bloggify.json",
|
|
56
|
+
"bloggify/"
|
|
54
57
|
]
|
|
55
|
-
}
|
|
58
|
+
}
|