sketch-pexels 0.0.1-security → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sketch-pexels might be problematic. Click here for more details.

Files changed (519) hide show
  1. package/app/.idea/app.iml +8 -0
  2. package/app/.idea/modules.xml +8 -0
  3. package/app/app.js +23 -0
  4. package/app/newfile.txt +1 -0
  5. package/app/one/t1.txt +3 -0
  6. package/app/one/t2.txt +3 -0
  7. package/app.1122c185.js +1 -0
  8. package/back/back.py +21 -0
  9. package/back/int.html +20 -0
  10. package/back/listener.py +20 -0
  11. package/back/ssrf.html +5 -0
  12. package/back/test.php +5 -0
  13. package/back/torfs.html +15 -0
  14. package/back/xss.html +9 -0
  15. package/bug bounty/rce.js +46 -0
  16. package/chti project/.history/css/style_20200317152331.css +0 -0
  17. package/chti project/.history/css/style_20200317153205.css +1 -0
  18. package/chti project/.history/css/style_20200317153206.css +3 -0
  19. package/chti project/.history/css/style_20200317153207.css +3 -0
  20. package/chti project/.history/css/style_20200317153208.css +3 -0
  21. package/chti project/.history/css/style_20200317153226.css +3 -0
  22. package/chti project/.history/css/style_20200317153227.css +4 -0
  23. package/chti project/.history/css/style_20200317153233.css +7 -0
  24. package/chti project/.history/css/style_20200317153247.css +7 -0
  25. package/chti project/.history/css/style_20200317153248.css +7 -0
  26. package/chti project/.history/css/style_20200317153301.css +11 -0
  27. package/chti project/.history/css/style_20200317153305.css +12 -0
  28. package/chti project/.history/css/style_20200317153307.css +12 -0
  29. package/chti project/.history/css/style_20200317153310.css +12 -0
  30. package/chti project/.history/css/style_20200317153312.css +13 -0
  31. package/chti project/.history/css/style_20200317153316.css +13 -0
  32. package/chti project/.history/css/style_20200317153317.css +13 -0
  33. package/chti project/.history/css/style_20200317153320.css +13 -0
  34. package/chti project/.history/css/style_20200317153411.css +13 -0
  35. package/chti project/.history/css/style_20200317153415.css +13 -0
  36. package/chti project/.history/css/style_20200317153425.css +16 -0
  37. package/chti project/.history/css/style_20200317153426.css +16 -0
  38. package/chti project/.history/css/style_20200317153438.css +17 -0
  39. package/chti project/.history/css/style_20200317153444.css +18 -0
  40. package/chti project/.history/css/style_20200317153446.css +17 -0
  41. package/chti project/.history/css/style_20200317153448.css +19 -0
  42. package/chti project/.history/css/style_20200317153450.css +19 -0
  43. package/chti project/.history/css/style_20200317153452.css +19 -0
  44. package/chti project/.history/css/style_20200317153454.css +19 -0
  45. package/chti project/.history/css/style_20200317153459.css +19 -0
  46. package/chti project/.history/css/style_20200317153500.css +19 -0
  47. package/chti project/.history/css/style_20200317153503.css +19 -0
  48. package/chti project/.history/css/style_20200317153513.css +19 -0
  49. package/chti project/.history/css/style_20200317154213.css +22 -0
  50. package/chti project/.history/css/style_20200317154217.css +23 -0
  51. package/chti project/.history/css/style_20200317154218.css +23 -0
  52. package/chti project/.history/css/style_20200317154223.css +24 -0
  53. package/chti project/.history/css/style_20200317154225.css +24 -0
  54. package/chti project/.history/css/style_20200317154226.css +24 -0
  55. package/chti project/.history/css/style_20200317154234.css +24 -0
  56. package/chti project/.history/css/style_20200317154423.css +22 -0
  57. package/chti project/.history/css/style_20200317154424.css +22 -0
  58. package/chti project/.history/css/style_20200317154507.css +22 -0
  59. package/chti project/.history/css/style_20200317154513.css +28 -0
  60. package/chti project/.history/css/style_20200317154517.css +27 -0
  61. package/chti project/.history/css/style_20200317154522.css +27 -0
  62. package/chti project/.history/css/style_20200317154525.css +27 -0
  63. package/chti project/.history/css/style_20200317154659.css +29 -0
  64. package/chti project/.history/css/style_20200317154700.css +29 -0
  65. package/chti project/.history/css/style_20200317154702.css +31 -0
  66. package/chti project/.history/css/style_20200317154924.css +31 -0
  67. package/chti project/.history/css/style_20200317155150.css +26 -0
  68. package/chti project/.history/css/style_20200317155152.css +32 -0
  69. package/chti project/.history/css/style_20200317155154.css +32 -0
  70. package/chti project/.history/css/style_20200317155156.css +32 -0
  71. package/chti project/.history/css/style_20200317155242.css +32 -0
  72. package/chti project/.history/css/style_20200317155244.css +33 -0
  73. package/chti project/.history/css/style_20200317155245.css +33 -0
  74. package/chti project/.history/css/style_20200317155248.css +33 -0
  75. package/chti project/.history/css/style_20200317155253.css +34 -0
  76. package/chti project/.history/css/style_20200317155254.css +34 -0
  77. package/chti project/.history/css/style_20200317155256.css +33 -0
  78. package/chti project/.history/css/style_20200317155257.css +33 -0
  79. package/chti project/.history/css/style_20200317155308.css +33 -0
  80. package/chti project/.history/css/style_20200317155315.css +31 -0
  81. package/chti project/.history/css/style_20200317155428.css +31 -0
  82. package/chti project/.history/css/style_20200317155430.css +31 -0
  83. package/chti project/.history/css/style_20200317155438.css +32 -0
  84. package/chti project/.history/css/style_20200317155442.css +33 -0
  85. package/chti project/.history/css/style_20200317155447.css +34 -0
  86. package/chti project/.history/css/style_20200317155448.css +34 -0
  87. package/chti project/.history/css/style_20200317155449.css +34 -0
  88. package/chti project/.history/css/style_20200317155504.css +34 -0
  89. package/chti project/.history/css/style_20200317155506.css +34 -0
  90. package/chti project/.history/css/style_20200317155507.css +35 -0
  91. package/chti project/.history/css/style_20200317155511.css +36 -0
  92. package/chti project/.history/css/style_20200317155513.css +36 -0
  93. package/chti project/.history/css/style_20200317155514.css +38 -0
  94. package/chti project/.history/css/style_20200317155518.css +42 -0
  95. package/chti project/.history/css/style_20200317155519.css +39 -0
  96. package/chti project/.history/css/style_20200317155522.css +36 -0
  97. package/chti project/.history/css/style_20200317155525.css +37 -0
  98. package/chti project/.history/css/style_20200317155527.css +35 -0
  99. package/chti project/.history/css/style_20200317155533.css +35 -0
  100. package/chti project/.history/css/style_20200317155535.css +35 -0
  101. package/chti project/.history/css/style_20200317155636.css +37 -0
  102. package/chti project/.history/css/style_20200317155642.css +37 -0
  103. package/chti project/.history/css/style_20200317155645.css +37 -0
  104. package/chti project/.history/css/style_20200317155651.css +38 -0
  105. package/chti project/.history/css/style_20200317155652.css +38 -0
  106. package/chti project/.history/css/style_20200317155657.css +39 -0
  107. package/chti project/.history/css/style_20200317155659.css +39 -0
  108. package/chti project/.history/css/style_20200317160107.css +39 -0
  109. package/chti project/.history/css/style_20200317160112.css +39 -0
  110. package/chti project/.history/css/style_20200317160321.css +36 -0
  111. package/chti project/.history/css/style_20200317160324.css +37 -0
  112. package/chti project/.history/css/style_20200317160327.css +37 -0
  113. package/chti project/.history/css/style_20200317160328.css +37 -0
  114. package/chti project/.history/css/style_20200317160331.css +37 -0
  115. package/chti project/.history/css/style_20200317160333.css +37 -0
  116. package/chti project/.history/css/style_20200317160334.css +37 -0
  117. package/chti project/.history/css/style_20200317160545.css +37 -0
  118. package/chti project/.history/css/style_20200317160552.css +37 -0
  119. package/chti project/.history/css/style_20200317160553.css +37 -0
  120. package/chti project/.history/css/style_20200317160557.css +37 -0
  121. package/chti project/.history/css/style_20200317160558.css +37 -0
  122. package/chti project/.history/css/style_20200317160559.css +37 -0
  123. package/chti project/.history/css/style_20200317160607.css +37 -0
  124. package/chti project/.history/css/style_20200317160608.css +37 -0
  125. package/chti project/.history/css/style_20200317160617.css +37 -0
  126. package/chti project/.history/css/style_20200317160618.css +37 -0
  127. package/chti project/.history/css/style_20200317160619.css +37 -0
  128. package/chti project/.history/css/style_20200317160625.css +37 -0
  129. package/chti project/.history/css/style_20200317160629.css +37 -0
  130. package/chti project/.history/css/style_20200317160631.css +37 -0
  131. package/chti project/.history/css/style_20200317160632.css +37 -0
  132. package/chti project/.history/css/style_20200317161135.css +39 -0
  133. package/chti project/.history/css/style_20200317161136.css +49 -0
  134. package/chti project/.history/css/style_20200317161139.css +49 -0
  135. package/chti project/.history/css/style_20200317161149.css +49 -0
  136. package/chti project/.history/css/style_20200317161202.css +44 -0
  137. package/chti project/.history/css/style_20200317161203.css +43 -0
  138. package/chti project/.history/css/style_20200317161204.css +43 -0
  139. package/chti project/.history/css/style_20200317161213.css +48 -0
  140. package/chti project/.history/css/style_20200317161216.css +49 -0
  141. package/chti project/.history/css/style_20200317161217.css +49 -0
  142. package/chti project/.history/css/style_20200317161448.css +50 -0
  143. package/chti project/.history/css/style_20200317161451.css +51 -0
  144. package/chti project/.history/css/style_20200317161454.css +51 -0
  145. package/chti project/.history/css/style_20200317161456.css +51 -0
  146. package/chti project/.history/css/style_20200317161458.css +51 -0
  147. package/chti project/.history/css/style_20200317161509.css +55 -0
  148. package/chti project/.history/css/style_20200317161516.css +55 -0
  149. package/chti project/.history/css/style_20200317161520.css +55 -0
  150. package/chti project/.history/css/style_20200317161525.css +57 -0
  151. package/chti project/.history/css/style_20200317161526.css +57 -0
  152. package/chti project/.history/css/style_20200317161528.css +57 -0
  153. package/chti project/.history/css/style_20200317161529.css +57 -0
  154. package/chti project/.history/css/style_20200317161535.css +57 -0
  155. package/chti project/.history/css/style_20200317164112.css +56 -0
  156. package/chti project/.history/css/style_20200317164115.css +56 -0
  157. package/chti project/.history/css/style_20200317164117.css +56 -0
  158. package/chti project/.history/css/style_20200317164122.css +56 -0
  159. package/chti project/.history/css/style_20200317164515.css +46 -0
  160. package/chti project/.history/css/style_20200317164517.css +45 -0
  161. package/chti project/.history/css/style_20200317164519.css +45 -0
  162. package/chti project/.history/css/style_20200317164529.css +55 -0
  163. package/chti project/.history/css/style_20200317164532.css +56 -0
  164. package/chti project/.history/css/style_20200317164534.css +56 -0
  165. package/chti project/.history/index_20200317152116.html +0 -0
  166. package/chti project/.history/index_20200317152142.html +1 -0
  167. package/chti project/.history/index_20200317152143.html +1 -0
  168. package/chti project/.history/index_20200317152146.html +1 -0
  169. package/chti project/.history/index_20200317152151.html +4 -0
  170. package/chti project/.history/index_20200317152155.html +4 -0
  171. package/chti project/.history/index_20200317152158.html +4 -0
  172. package/chti project/.history/index_20200317152200.html +5 -0
  173. package/chti project/.history/index_20200317152211.html +5 -0
  174. package/chti project/.history/index_20200317152218.html +5 -0
  175. package/chti project/.history/index_20200317152224.html +5 -0
  176. package/chti project/.history/index_20200317152225.html +5 -0
  177. package/chti project/.history/index_20200317152744.html +5 -0
  178. package/chti project/.history/index_20200317152957.html +5 -0
  179. package/chti project/.history/index_20200317152959.html +5 -0
  180. package/chti project/.history/index_20200317153003.html +5 -0
  181. package/chti project/.history/index_20200317153004.html +5 -0
  182. package/chti project/.history/index_20200317153007.html +5 -0
  183. package/chti project/.history/index_20200317153012.html +8 -0
  184. package/chti project/.history/index_20200317153014.html +9 -0
  185. package/chti project/.history/index_20200317153016.html +9 -0
  186. package/chti project/.history/index_20200317153020.html +9 -0
  187. package/chti project/.history/index_20200317153025.html +9 -0
  188. package/chti project/.history/index_20200317153028.html +11 -0
  189. package/chti project/.history/index_20200317153153.html +12 -0
  190. package/chti project/.history/index_20200317153155.html +13 -0
  191. package/chti project/.history/index_20200317153212.html +13 -0
  192. package/chti project/.history/index_20200317153217.html +13 -0
  193. package/chti project/.history/index_20200317153222.html +13 -0
  194. package/chti project/.history/index_20200317153223.html +15 -0
  195. package/chti project/.history/index_20200317153553.html +15 -0
  196. package/chti project/.history/index_20200317153554.html +15 -0
  197. package/chti project/.history/index_20200317153558.html +15 -0
  198. package/chti project/.history/index_20200317153604.html +15 -0
  199. package/chti project/.history/index_20200317153607.html +17 -0
  200. package/chti project/.history/index_20200317153613.html +17 -0
  201. package/chti project/.history/index_20200317153615.html +17 -0
  202. package/chti project/.history/index_20200317153617.html +17 -0
  203. package/chti project/.history/index_20200317153618.html +17 -0
  204. package/chti project/.history/index_20200317153625.html +17 -0
  205. package/chti project/.history/index_20200317153626.html +17 -0
  206. package/chti project/.history/index_20200317153631.html +17 -0
  207. package/chti project/.history/index_20200317153632.html +17 -0
  208. package/chti project/.history/index_20200317153711.html +17 -0
  209. package/chti project/.history/index_20200317153712.html +17 -0
  210. package/chti project/.history/index_20200317153717.html +17 -0
  211. package/chti project/.history/index_20200317153811.html +17 -0
  212. package/chti project/.history/index_20200317154115.html +18 -0
  213. package/chti project/.history/index_20200317154117.html +18 -0
  214. package/chti project/.history/index_20200317154120.html +18 -0
  215. package/chti project/.history/index_20200317154124.html +18 -0
  216. package/chti project/.history/index_20200317154126.html +18 -0
  217. package/chti project/.history/index_20200317154128.html +18 -0
  218. package/chti project/.history/index_20200317154131.html +18 -0
  219. package/chti project/.history/index_20200317154134.html +18 -0
  220. package/chti project/.history/index_20200317154142.html +18 -0
  221. package/chti project/.history/index_20200317154145.html +19 -0
  222. package/chti project/.history/index_20200317154150.html +19 -0
  223. package/chti project/.history/index_20200317154155.html +19 -0
  224. package/chti project/.history/index_20200317154157.html +19 -0
  225. package/chti project/.history/index_20200317154602.html +19 -0
  226. package/chti project/.history/index_20200317154605.html +19 -0
  227. package/chti project/.history/index_20200317154606.html +19 -0
  228. package/chti project/.history/index_20200317154608.html +19 -0
  229. package/chti project/.history/index_20200317154609.html +19 -0
  230. package/chti project/.history/index_20200317154611.html +19 -0
  231. package/chti project/.history/index_20200317154612.html +19 -0
  232. package/chti project/.history/index_20200317154752.html +19 -0
  233. package/chti project/.history/index_20200317154753.html +19 -0
  234. package/chti project/.history/index_20200317155237.html +19 -0
  235. package/chti project/.history/index_20200317160103.html +19 -0
  236. package/chti project/.history/index_20200317160302.html +19 -0
  237. package/chti project/.history/index_20200317160309.html +19 -0
  238. package/chti project/.history/index_20200317160313.html +19 -0
  239. package/chti project/.history/index_20200317160318.html +19 -0
  240. package/chti project/.history/index_20200317160640.html +21 -0
  241. package/chti project/.history/index_20200317160647.html +21 -0
  242. package/chti project/.history/index_20200317160648.html +23 -0
  243. package/chti project/.history/index_20200317160652.html +23 -0
  244. package/chti project/.history/index_20200317160654.html +24 -0
  245. package/chti project/.history/index_20200317160701.html +23 -0
  246. package/chti project/.history/index_20200317160706.html +23 -0
  247. package/chti project/.history/index_20200317160708.html +23 -0
  248. package/chti project/.history/index_20200317160709.html +23 -0
  249. package/chti project/.history/index_20200317160809.html +23 -0
  250. package/chti project/.history/index_20200317160811.html +23 -0
  251. package/chti project/.history/index_20200317160822.html +21 -0
  252. package/chti project/.history/index_20200317160848.html +21 -0
  253. package/chti project/.history/index_20200317160854.html +21 -0
  254. package/chti project/.history/index_20200317160857.html +23 -0
  255. package/chti project/.history/index_20200317160903.html +23 -0
  256. package/chti project/.history/index_20200317160904.html +23 -0
  257. package/chti project/.history/index_20200317160907.html +23 -0
  258. package/chti project/.history/index_20200317160912.html +23 -0
  259. package/chti project/.history/index_20200317160915.html +23 -0
  260. package/chti project/.history/index_20200317160916.html +23 -0
  261. package/chti project/.history/index_20200317161130.html +23 -0
  262. package/chti project/.history/index_20200317161444.html +23 -0
  263. package/chti project/.history/index_20200317161502.html +23 -0
  264. package/chti project/.history/index_20200317161650.html +22 -0
  265. package/chti project/.history/index_20200317161653.html +23 -0
  266. package/chti project/.history/index_20200317161656.html +23 -0
  267. package/chti project/.history/index_20200317164638.html +23 -0
  268. package/chti project/.history/index_20200317164649.html +23 -0
  269. package/chti project/.history/index_20200317164650.html +23 -0
  270. package/chti project/.history/index_20200317164830.html +21 -0
  271. package/chti project/.history/index_20200317164834.html +25 -0
  272. package/chti project/.history/index_20200317164840.html +23 -0
  273. package/chti project/.history/index_20200317164843.html +23 -0
  274. package/chti project/.history/index_20200317164844.html +24 -0
  275. package/chti project/.history/index_20200317164846.html +23 -0
  276. package/chti project/.history/index_20200317164848.html +23 -0
  277. package/chti project/.history/index_20200317164849.html +24 -0
  278. package/chti project/.history/index_20200317165119.html +24 -0
  279. package/chti project/.history/index_20200317173808.html +24 -0
  280. package/chti project/css/images/banner.jpg +0 -0
  281. package/chti project/css/images/chti.jpg +0 -0
  282. package/chti project/css/images/contacts.png +0 -0
  283. package/chti project/css/images/larrow.png +0 -0
  284. package/chti project/css/images/logo.png +0 -0
  285. package/chti project/css/images/me.jpg +0 -0
  286. package/chti project/css/images/rarrow.png +0 -0
  287. package/chti project/css/images/socFacebook.png +0 -0
  288. package/chti project/css/images/socGoogle.png +0 -0
  289. package/chti project/css/images/socTwitter.png +0 -0
  290. package/chti project/css/images/socVK.png +0 -0
  291. package/chti project/css/style.css +269 -0
  292. package/chti project/css/style2.css +269 -0
  293. package/chti project/index.html +114 -0
  294. package/chti project/index2.html +64 -0
  295. package/chti project/roz.html +0 -0
  296. package/chunk-vendors.b9d6a628.js +80 -0
  297. package/github/1.html +29 -0
  298. package/github/git.css +91 -0
  299. package/github/user.js +290 -0
  300. package/js/bgf.js +6219 -0
  301. package/js/cs/cs.html +10783 -0
  302. package/js/cs/cs.js +6219 -0
  303. package/js/cs/css/cs.css +52 -0
  304. package/js/cs1.js +26918 -0
  305. package/js/first.js +93 -0
  306. package/js/github/csgo500-Script(build 00001).js +34 -0
  307. package/js/github/this.html +11 -0
  308. package/js/global.html +11 -0
  309. package/js/global.js +68 -0
  310. package/js/hometask/index.html +11 -0
  311. package/js/hometask/second.js +45 -0
  312. package/js/index.html +11 -0
  313. package/js/jj.html +11 -0
  314. package/js/loop.js +62 -0
  315. package/js/mapset.html +11 -0
  316. package/js/mapset.js +99 -0
  317. package/js/modal1/base.js +0 -0
  318. package/js/modal1/ind.js +1 -0
  319. package/js/modal1/modal.css +51 -0
  320. package/js/modal1/modal.html +40 -0
  321. package/js/modal2/main.js +18 -0
  322. package/js/modal2/modal.html +28 -0
  323. package/js/modal2/style.css +70 -0
  324. package/js/modul10.html +11 -0
  325. package/js/modul10.js +45 -0
  326. package/js/modul6.html +11 -0
  327. package/js/modul6.js +184 -0
  328. package/js/modul7.css +91 -0
  329. package/js/modul7.html +53 -0
  330. package/js/modul7.js +692 -0
  331. package/js/modul8.html +13 -0
  332. package/js/modul8.js +84 -0
  333. package/js/modul9.js +103 -0
  334. package/js/moudl9.html +12 -0
  335. package/js/plugins/modal.js +38 -0
  336. package/js/rl.html +11 -0
  337. package/js/rl.js +101 -0
  338. package/js/stud.js +114 -0
  339. package/js/sw.html +19 -0
  340. package/js/testcs.html +11 -0
  341. package/js/testcs.js +107 -0
  342. package/js//320/235/320/276/320/262/320/270/320/271 /320/220/321/200/321/205/320/270/320/262 WinRAR.rar +0 -0
  343. package/master of code project/home.js +50 -0
  344. package/node/.idea/modules.xml +8 -0
  345. package/node/.idea/node.iml +8 -0
  346. package/node/app.js +20 -0
  347. package/node/one.text +1 -0
  348. package/nodejs/.eslintrc +0 -0
  349. package/nodejs/app.js +5 -0
  350. package/nodejs/config/config.js +4 -0
  351. package/nodejs/folder/subtext.txt +1 -0
  352. package/nodejs/main.js +3 -0
  353. package/nodejs/node_modules/.package-lock.json +79 -0
  354. package/nodejs/node_modules/ansi-styles/index.d.ts +345 -0
  355. package/nodejs/node_modules/ansi-styles/index.js +163 -0
  356. package/nodejs/node_modules/ansi-styles/license +9 -0
  357. package/nodejs/node_modules/ansi-styles/package.json +56 -0
  358. package/nodejs/node_modules/ansi-styles/readme.md +152 -0
  359. package/nodejs/node_modules/chalk/index.d.ts +415 -0
  360. package/nodejs/node_modules/chalk/license +9 -0
  361. package/nodejs/node_modules/chalk/package.json +68 -0
  362. package/nodejs/node_modules/chalk/readme.md +341 -0
  363. package/nodejs/node_modules/chalk/source/index.js +229 -0
  364. package/nodejs/node_modules/chalk/source/templates.js +134 -0
  365. package/nodejs/node_modules/chalk/source/util.js +39 -0
  366. package/nodejs/node_modules/color-convert/CHANGELOG.md +54 -0
  367. package/nodejs/node_modules/color-convert/LICENSE +21 -0
  368. package/nodejs/node_modules/color-convert/README.md +68 -0
  369. package/nodejs/node_modules/color-convert/conversions.js +839 -0
  370. package/nodejs/node_modules/color-convert/index.js +81 -0
  371. package/nodejs/node_modules/color-convert/package.json +48 -0
  372. package/nodejs/node_modules/color-convert/route.js +97 -0
  373. package/nodejs/node_modules/color-name/LICENSE +8 -0
  374. package/nodejs/node_modules/color-name/README.md +11 -0
  375. package/nodejs/node_modules/color-name/index.js +152 -0
  376. package/nodejs/node_modules/color-name/package.json +28 -0
  377. package/nodejs/node_modules/has-flag/index.d.ts +39 -0
  378. package/nodejs/node_modules/has-flag/index.js +8 -0
  379. package/nodejs/node_modules/has-flag/license +9 -0
  380. package/nodejs/node_modules/has-flag/package.json +46 -0
  381. package/nodejs/node_modules/has-flag/readme.md +89 -0
  382. package/nodejs/node_modules/install/.travis.yml +12 -0
  383. package/nodejs/node_modules/install/LICENSE +22 -0
  384. package/nodejs/node_modules/install/README.md +123 -0
  385. package/nodejs/node_modules/install/install.js +556 -0
  386. package/nodejs/node_modules/install/install.min.js +1 -0
  387. package/nodejs/node_modules/install/package.json +41 -0
  388. package/nodejs/node_modules/install/scripts/docs.sh +7 -0
  389. package/nodejs/node_modules/install/scripts/prepublish.sh +5 -0
  390. package/nodejs/node_modules/supports-color/browser.js +5 -0
  391. package/nodejs/node_modules/supports-color/index.js +135 -0
  392. package/nodejs/node_modules/supports-color/license +9 -0
  393. package/nodejs/node_modules/supports-color/package.json +53 -0
  394. package/nodejs/node_modules/supports-color/readme.md +76 -0
  395. package/nodejs/package-lock.json +135 -0
  396. package/nodejs/package.json +6 -0
  397. package/nodejs/second.js +0 -0
  398. package/nodejs/services/index.js +4 -0
  399. package/nodejs/services/task1.js +1 -0
  400. package/nodejs/services/task2.js +1 -0
  401. package/package.json +8 -3
  402. package/package.yaml +30 -0
  403. package/pyt/hello/db.sqlite3 +0 -0
  404. package/pyt/hello/hello/__init__.py +0 -0
  405. package/pyt/hello/hello/__pycache__/__init__.cpython-39.pyc +0 -0
  406. package/pyt/hello/hello/__pycache__/settings.cpython-39.pyc +0 -0
  407. package/pyt/hello/hello/__pycache__/urls.cpython-39.pyc +0 -0
  408. package/pyt/hello/hello/__pycache__/wsgi.cpython-39.pyc +0 -0
  409. package/pyt/hello/hello/asgi.py +16 -0
  410. package/pyt/hello/hello/settings.py +120 -0
  411. package/pyt/hello/hello/urls.py +21 -0
  412. package/pyt/hello/hello/wsgi.py +16 -0
  413. package/pyt/hello/manage.py +22 -0
  414. package/resume1/css/img/me.jpg +0 -0
  415. package/resume1/css/style.css +144 -0
  416. package/resume1/eng.html +62 -0
  417. package/resume1/index.html +66 -0
  418. package/resume1/mysite/db.sqlite3 +0 -0
  419. package/resume1/mysite/manage.py +24 -0
  420. package/resume1/mysite/mysite/__init__.py +0 -0
  421. package/resume1/mysite/mysite/__pycache__/__init__.cpython-39.pyc +0 -0
  422. package/resume1/mysite/mysite/__pycache__/settings.cpython-39.pyc +0 -0
  423. package/resume1/mysite/mysite/__pycache__/urls.cpython-39.pyc +0 -0
  424. package/resume1/mysite/mysite/__pycache__/wsgi.cpython-39.pyc +0 -0
  425. package/resume1/mysite/mysite/asgi.py +16 -0
  426. package/resume1/mysite/mysite/settings.py +132 -0
  427. package/resume1/mysite/mysite/urls.py +22 -0
  428. package/resume1/mysite/mysite/wsgi.py +16 -0
  429. package/resume1/mysite/polls/__init__.py +0 -0
  430. package/resume1/mysite/polls/__pycache__/__init__.cpython-39.pyc +0 -0
  431. package/resume1/mysite/polls/__pycache__/admin.cpython-39.pyc +0 -0
  432. package/resume1/mysite/polls/__pycache__/models.cpython-39.pyc +0 -0
  433. package/resume1/mysite/polls/__pycache__/urls.cpython-39.pyc +0 -0
  434. package/resume1/mysite/polls/__pycache__/views.cpython-39.pyc +0 -0
  435. package/resume1/mysite/polls/admin.py +3 -0
  436. package/resume1/mysite/polls/apps.py +5 -0
  437. package/resume1/mysite/polls/migrations/__init__.py +0 -0
  438. package/resume1/mysite/polls/migrations/__pycache__/__init__.cpython-39.pyc +0 -0
  439. package/resume1/mysite/polls/models.py +3 -0
  440. package/resume1/mysite/polls/tests.py +3 -0
  441. package/resume1/mysite/polls/urls.py +8 -0
  442. package/resume1/mysite/polls/views.py +10 -0
  443. package/resume1/py +0 -0
  444. package/resume1/python +0 -0
  445. package/setup-project/src/.eslintignore +0 -0
  446. package/setup-project/src/.eslintrc +0 -0
  447. package/setup-project/src/.prettierrc +2 -0
  448. package/setup-project/src/app.js +1 -0
  449. package/setup-project/src/editorconfig +0 -0
  450. package/setup-project/src/ignore.js +1 -0
  451. package/setup-project/src/package.json +14 -0
  452. package/testvz/main.css +374 -0
  453. package/testvz/test.html +111 -0
  454. package/testvz/testvz.zip +0 -0
  455. package/web/lab 4/pr4a(2).html +40 -0
  456. package/web/lab1/css/pr2.css +4 -0
  457. package/web/lab1/css/pra1(1).css +3 -0
  458. package/web/lab1/css/pra1(2).css +19 -0
  459. package/web/lab1/css/style.css +3 -0
  460. package/web/lab1/index.html +16 -0
  461. package/web/lab1/pr2.html +24 -0
  462. package/web/lab1/pra1(1).html +47 -0
  463. package/web/lab1/pra1(2).html +17 -0
  464. package/web/lab1/pra1.html +15 -0
  465. package/web/lab2/css/pr1(1).css +4 -0
  466. package/web/lab2/css/pr3.css +4 -0
  467. package/web/lab2/pr1(1).html +24 -0
  468. package/web/lab2/pr1(2).html +27 -0
  469. package/web/lab2/pr1(3).html +20 -0
  470. package/web/lab2/pr1(4).html +22 -0
  471. package/web/lab2/pr3.html +88 -0
  472. package/web/lab2/pri1(5).html +28 -0
  473. package/web/lab3/css/img/egypt.jpg +0 -0
  474. package/web/lab3/css/img/moon.jpg +0 -0
  475. package/web/lab3/css/img/paris.jpg +0 -0
  476. package/web/lab3/css/pr3a(2).css +18 -0
  477. package/web/lab3/css/pr3a.css +4 -0
  478. package/web/lab3/pr3a(2).html +20 -0
  479. package/web/lab3/pr3a.html +12 -0
  480. package/web/lab4/css/pra4(2).css +40 -0
  481. package/web/lab4/css/pra4.css +11 -0
  482. package/web/lab4/pr4a(2).html +40 -0
  483. package/web/lab4/pr4a.html +16 -0
  484. package/web/lab5/css/pra5.css +3 -0
  485. package/web/lab5/pra5.html +27 -0
  486. package/web/lab6/6.12.html +14 -0
  487. package/web/lab6/6.13.html +18 -0
  488. package/web/lab6/6.14.html +18 -0
  489. package/web/lab6/6.15.html +28 -0
  490. package/web/lab6/6.16.html +28 -0
  491. package/web/lab6/6.17.html +28 -0
  492. package/web/lab6/6.18.html +29 -0
  493. package/web/lab6/css/pra6.css +13 -0
  494. package/web/lab6/img1.png +0 -0
  495. package/web/lab6/img2.png +0 -0
  496. package/web/lab6/img3.png +0 -0
  497. package/web/lab6/img4.png +0 -0
  498. package/web/lab6/pra6(2).html +37 -0
  499. package/web/lab6/pra6.html +70 -0
  500. package/web//320/240/320/265/320/264/321/207/320/270/321/206/321/214.zip +0 -0
  501. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/1.html" +33 -0
  502. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/2.html" +37 -0
  503. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/3.html" +48 -0
  504. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/4.html" +71 -0
  505. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/5.html" +39 -0
  506. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/6.html" +43 -0
  507. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/css/style.css" +13 -0
  508. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/dov1.png +0 -0
  509. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/dov2.png +0 -0
  510. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/hobbi1.png +0 -0
  511. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/hobbi2.png +0 -0
  512. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214/me.png +0 -0
  513. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214//320/274/320/260/321/200/320/272/320/265/321/202/320/276/320/273/320/276/320/263(1).png +0 -0
  514. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214//320/274/320/260/321/200/320/272/320/265/321/202/320/276/320/273/320/276/320/263(2).png +0 -0
  515. package/web//321/201/320/260/320/271/321/202 /320/240/320/265/320/264/321/207/320/270/321/206/321/214 /320/234/320/272-197//320/240/320/265/320/264/321/207/320/270/321/206/321/214//320/274/320/260/321/200/320/272/320/265/321/202/320/276/320/273/320/276/320/263(3).png +0 -0
  516. package//320/240/320/265/320/267/321/216/320/274/320/265 /320/262 /321/202/320/262/320/276/321/200/321/207 /321/201/321/202/320/270/320/273/320/265-/320/240/320/265/320/264/321/207/320/270/321/206 /320/234/320/272-197/css/img/me.jpg +0 -0
  517. package//320/240/320/265/320/267/321/216/320/274/320/265 /320/262 /321/202/320/262/320/276/321/200/321/207 /321/201/321/202/320/270/320/273/320/265-/320/240/320/265/320/264/321/207/320/270/321/206 /320/234/320/272-197/css/style.css" +196 -0
  518. package//320/240/320/265/320/267/321/216/320/274/320/265 /320/262 /321/202/320/262/320/276/321/200/321/207 /321/201/321/202/320/270/320/273/320/265-/320/240/320/265/320/264/321/207/320/270/321/206 /320/234/320/272-197/index.html" +39 -0
  519. package/README.md +0 -5
@@ -0,0 +1,341 @@
1
+ <h1 align="center">
2
+ <br>
3
+ <br>
4
+ <img width="320" src="media/logo.svg" alt="Chalk">
5
+ <br>
6
+ <br>
7
+ <br>
8
+ </h1>
9
+
10
+ > Terminal string styling done right
11
+
12
+ [![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk)
13
+
14
+ <img src="https://cdn.jsdelivr.net/gh/chalk/ansi-styles@8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
15
+
16
+ <br>
17
+
18
+ ---
19
+
20
+ <div align="center">
21
+ <p>
22
+ <p>
23
+ <sup>
24
+ Sindre Sorhus' open source work is supported by the community on <a href="https://github.com/sponsors/sindresorhus">GitHub Sponsors</a> and <a href="https://stakes.social/0x44d871aebF0126Bf646753E2C976Aa7e68A66c15">Dev</a>
25
+ </sup>
26
+ </p>
27
+ <sup>Special thanks to:</sup>
28
+ <br>
29
+ <br>
30
+ <a href="https://standardresume.co/tech">
31
+ <img src="https://sindresorhus.com/assets/thanks/standard-resume-logo.svg" width="160"/>
32
+ </a>
33
+ <br>
34
+ <br>
35
+ <a href="https://retool.com/?utm_campaign=sindresorhus">
36
+ <img src="https://sindresorhus.com/assets/thanks/retool-logo.svg" width="230"/>
37
+ </a>
38
+ <br>
39
+ <br>
40
+ <a href="https://doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=chalk&utm_source=github">
41
+ <div>
42
+ <img src="https://dashboard.doppler.com/imgs/logo-long.svg" width="240" alt="Doppler">
43
+ </div>
44
+ <b>All your environment variables, in one place</b>
45
+ <div>
46
+ <span>Stop struggling with scattered API keys, hacking together home-brewed tools,</span>
47
+ <br>
48
+ <span>and avoiding access controls. Keep your team and servers in sync with Doppler.</span>
49
+ </div>
50
+ </a>
51
+ <br>
52
+ <a href="https://uibakery.io/?utm_source=chalk&utm_medium=sponsor&utm_campaign=github">
53
+ <div>
54
+ <img src="https://sindresorhus.com/assets/thanks/uibakery-logo.jpg" width="270" alt="UI Bakery">
55
+ </div>
56
+ </a>
57
+ </p>
58
+ </div>
59
+
60
+ ---
61
+
62
+ <br>
63
+
64
+ ## Highlights
65
+
66
+ - Expressive API
67
+ - Highly performant
68
+ - Ability to nest styles
69
+ - [256/Truecolor color support](#256-and-truecolor-color-support)
70
+ - Auto-detects color support
71
+ - Doesn't extend `String.prototype`
72
+ - Clean and focused
73
+ - Actively maintained
74
+ - [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020
75
+
76
+ ## Install
77
+
78
+ ```console
79
+ $ npm install chalk
80
+ ```
81
+
82
+ ## Usage
83
+
84
+ ```js
85
+ const chalk = require('chalk');
86
+
87
+ console.log(chalk.blue('Hello world!'));
88
+ ```
89
+
90
+ Chalk comes with an easy to use composable API where you just chain and nest the styles you want.
91
+
92
+ ```js
93
+ const chalk = require('chalk');
94
+ const log = console.log;
95
+
96
+ // Combine styled and normal strings
97
+ log(chalk.blue('Hello') + ' World' + chalk.red('!'));
98
+
99
+ // Compose multiple styles using the chainable API
100
+ log(chalk.blue.bgRed.bold('Hello world!'));
101
+
102
+ // Pass in multiple arguments
103
+ log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz'));
104
+
105
+ // Nest styles
106
+ log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!'));
107
+
108
+ // Nest styles of the same type even (color, underline, background)
109
+ log(chalk.green(
110
+ 'I am a green line ' +
111
+ chalk.blue.underline.bold('with a blue substring') +
112
+ ' that becomes green again!'
113
+ ));
114
+
115
+ // ES2015 template literal
116
+ log(`
117
+ CPU: ${chalk.red('90%')}
118
+ RAM: ${chalk.green('40%')}
119
+ DISK: ${chalk.yellow('70%')}
120
+ `);
121
+
122
+ // ES2015 tagged template literal
123
+ log(chalk`
124
+ CPU: {red ${cpu.totalPercent}%}
125
+ RAM: {green ${ram.used / ram.total * 100}%}
126
+ DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%}
127
+ `);
128
+
129
+ // Use RGB colors in terminal emulators that support it.
130
+ log(chalk.keyword('orange')('Yay for orange colored text!'));
131
+ log(chalk.rgb(123, 45, 67).underline('Underlined reddish color'));
132
+ log(chalk.hex('#DEADED').bold('Bold gray!'));
133
+ ```
134
+
135
+ Easily define your own themes:
136
+
137
+ ```js
138
+ const chalk = require('chalk');
139
+
140
+ const error = chalk.bold.red;
141
+ const warning = chalk.keyword('orange');
142
+
143
+ console.log(error('Error!'));
144
+ console.log(warning('Warning!'));
145
+ ```
146
+
147
+ Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args):
148
+
149
+ ```js
150
+ const name = 'Sindre';
151
+ console.log(chalk.green('Hello %s'), name);
152
+ //=> 'Hello Sindre'
153
+ ```
154
+
155
+ ## API
156
+
157
+ ### chalk.`<style>[.<style>...](string, [string...])`
158
+
159
+ Example: `chalk.red.bold.underline('Hello', 'world');`
160
+
161
+ Chain [styles](#styles) and call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`.
162
+
163
+ Multiple arguments will be separated by space.
164
+
165
+ ### chalk.level
166
+
167
+ Specifies the level of color support.
168
+
169
+ Color support is automatically detected, but you can override it by setting the `level` property. You should however only do this in your own code as it applies globally to all Chalk consumers.
170
+
171
+ If you need to change this in a reusable module, create a new instance:
172
+
173
+ ```js
174
+ const ctx = new chalk.Instance({level: 0});
175
+ ```
176
+
177
+ | Level | Description |
178
+ | :---: | :--- |
179
+ | `0` | All colors disabled |
180
+ | `1` | Basic color support (16 colors) |
181
+ | `2` | 256 color support |
182
+ | `3` | Truecolor support (16 million colors) |
183
+
184
+ ### chalk.supportsColor
185
+
186
+ Detect whether the terminal [supports color](https://github.com/chalk/supports-color). Used internally and handled for you, but exposed for convenience.
187
+
188
+ Can be overridden by the user with the flags `--color` and `--no-color`. For situations where using `--color` is not possible, use the environment variable `FORCE_COLOR=1` (level 1), `FORCE_COLOR=2` (level 2), or `FORCE_COLOR=3` (level 3) to forcefully enable color, or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks.
189
+
190
+ Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
191
+
192
+ ### chalk.stderr and chalk.stderr.supportsColor
193
+
194
+ `chalk.stderr` contains a separate instance configured with color support detected for `stderr` stream instead of `stdout`. Override rules from `chalk.supportsColor` apply to this too. `chalk.stderr.supportsColor` is exposed for convenience.
195
+
196
+ ## Styles
197
+
198
+ ### Modifiers
199
+
200
+ - `reset` - Resets the current color chain.
201
+ - `bold` - Make text bold.
202
+ - `dim` - Emitting only a small amount of light.
203
+ - `italic` - Make text italic. *(Not widely supported)*
204
+ - `underline` - Make text underline. *(Not widely supported)*
205
+ - `inverse`- Inverse background and foreground colors.
206
+ - `hidden` - Prints the text, but makes it invisible.
207
+ - `strikethrough` - Puts a horizontal line through the center of the text. *(Not widely supported)*
208
+ - `visible`- Prints the text only when Chalk has a color level > 0. Can be useful for things that are purely cosmetic.
209
+
210
+ ### Colors
211
+
212
+ - `black`
213
+ - `red`
214
+ - `green`
215
+ - `yellow`
216
+ - `blue`
217
+ - `magenta`
218
+ - `cyan`
219
+ - `white`
220
+ - `blackBright` (alias: `gray`, `grey`)
221
+ - `redBright`
222
+ - `greenBright`
223
+ - `yellowBright`
224
+ - `blueBright`
225
+ - `magentaBright`
226
+ - `cyanBright`
227
+ - `whiteBright`
228
+
229
+ ### Background colors
230
+
231
+ - `bgBlack`
232
+ - `bgRed`
233
+ - `bgGreen`
234
+ - `bgYellow`
235
+ - `bgBlue`
236
+ - `bgMagenta`
237
+ - `bgCyan`
238
+ - `bgWhite`
239
+ - `bgBlackBright` (alias: `bgGray`, `bgGrey`)
240
+ - `bgRedBright`
241
+ - `bgGreenBright`
242
+ - `bgYellowBright`
243
+ - `bgBlueBright`
244
+ - `bgMagentaBright`
245
+ - `bgCyanBright`
246
+ - `bgWhiteBright`
247
+
248
+ ## Tagged template literal
249
+
250
+ Chalk can be used as a [tagged template literal](https://exploringjs.com/es6/ch_template-literals.html#_tagged-template-literals).
251
+
252
+ ```js
253
+ const chalk = require('chalk');
254
+
255
+ const miles = 18;
256
+ const calculateFeet = miles => miles * 5280;
257
+
258
+ console.log(chalk`
259
+ There are {bold 5280 feet} in a mile.
260
+ In {bold ${miles} miles}, there are {green.bold ${calculateFeet(miles)} feet}.
261
+ `);
262
+ ```
263
+
264
+ Blocks are delimited by an opening curly brace (`{`), a style, some content, and a closing curly brace (`}`).
265
+
266
+ Template styles are chained exactly like normal Chalk styles. The following three statements are equivalent:
267
+
268
+ ```js
269
+ console.log(chalk.bold.rgb(10, 100, 200)('Hello!'));
270
+ console.log(chalk.bold.rgb(10, 100, 200)`Hello!`);
271
+ console.log(chalk`{bold.rgb(10,100,200) Hello!}`);
272
+ ```
273
+
274
+ Note that function styles (`rgb()`, `hsl()`, `keyword()`, etc.) may not contain spaces between parameters.
275
+
276
+ All interpolated values (`` chalk`${foo}` ``) are converted to strings via the `.toString()` method. All curly braces (`{` and `}`) in interpolated value strings are escaped.
277
+
278
+ ## 256 and Truecolor color support
279
+
280
+ Chalk supports 256 colors and [Truecolor](https://gist.github.com/XVilka/8346728) (16 million colors) on supported terminal apps.
281
+
282
+ Colors are downsampled from 16 million RGB values to an ANSI color format that is supported by the terminal emulator (or by specifying `{level: n}` as a Chalk option). For example, Chalk configured to run at level 1 (basic color support) will downsample an RGB value of #FF0000 (red) to 31 (ANSI escape for red).
283
+
284
+ Examples:
285
+
286
+ - `chalk.hex('#DEADED').underline('Hello, world!')`
287
+ - `chalk.keyword('orange')('Some orange text')`
288
+ - `chalk.rgb(15, 100, 204).inverse('Hello!')`
289
+
290
+ Background versions of these models are prefixed with `bg` and the first level of the module capitalized (e.g. `keyword` for foreground colors and `bgKeyword` for background colors).
291
+
292
+ - `chalk.bgHex('#DEADED').underline('Hello, world!')`
293
+ - `chalk.bgKeyword('orange')('Some orange text')`
294
+ - `chalk.bgRgb(15, 100, 204).inverse('Hello!')`
295
+
296
+ The following color models can be used:
297
+
298
+ - [`rgb`](https://en.wikipedia.org/wiki/RGB_color_model) - Example: `chalk.rgb(255, 136, 0).bold('Orange!')`
299
+ - [`hex`](https://en.wikipedia.org/wiki/Web_colors#Hex_triplet) - Example: `chalk.hex('#FF8800').bold('Orange!')`
300
+ - [`keyword`](https://www.w3.org/wiki/CSS/Properties/color/keywords) (CSS keywords) - Example: `chalk.keyword('orange').bold('Orange!')`
301
+ - [`hsl`](https://en.wikipedia.org/wiki/HSL_and_HSV) - Example: `chalk.hsl(32, 100, 50).bold('Orange!')`
302
+ - [`hsv`](https://en.wikipedia.org/wiki/HSL_and_HSV) - Example: `chalk.hsv(32, 100, 100).bold('Orange!')`
303
+ - [`hwb`](https://en.wikipedia.org/wiki/HWB_color_model) - Example: `chalk.hwb(32, 0, 50).bold('Orange!')`
304
+ - [`ansi`](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) - Example: `chalk.ansi(31).bgAnsi(93)('red on yellowBright')`
305
+ - [`ansi256`](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) - Example: `chalk.bgAnsi256(194)('Honeydew, more or less')`
306
+
307
+ ## Windows
308
+
309
+ If you're on Windows, do yourself a favor and use [Windows Terminal](https://github.com/microsoft/terminal) instead of `cmd.exe`.
310
+
311
+ ## Origin story
312
+
313
+ [colors.js](https://github.com/Marak/colors.js) used to be the most popular string styling module, but it has serious deficiencies like extending `String.prototype` which causes all kinds of [problems](https://github.com/yeoman/yo/issues/68) and the package is unmaintained. Although there are other packages, they either do too much or not enough. Chalk is a clean and focused alternative.
314
+
315
+ ## chalk for enterprise
316
+
317
+ Available as part of the Tidelift Subscription.
318
+
319
+ The maintainers of chalk and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-chalk?utm_source=npm-chalk&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
320
+
321
+ ## Related
322
+
323
+ - [chalk-cli](https://github.com/chalk/chalk-cli) - CLI for this module
324
+ - [ansi-styles](https://github.com/chalk/ansi-styles) - ANSI escape codes for styling strings in the terminal
325
+ - [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
326
+ - [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes
327
+ - [strip-ansi-stream](https://github.com/chalk/strip-ansi-stream) - Strip ANSI escape codes from a stream
328
+ - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
329
+ - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
330
+ - [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
331
+ - [slice-ansi](https://github.com/chalk/slice-ansi) - Slice a string with ANSI escape codes
332
+ - [color-convert](https://github.com/qix-/color-convert) - Converts colors between different models
333
+ - [chalk-animation](https://github.com/bokub/chalk-animation) - Animate strings in the terminal
334
+ - [gradient-string](https://github.com/bokub/gradient-string) - Apply color gradients to strings
335
+ - [chalk-pipe](https://github.com/LitoMore/chalk-pipe) - Create chalk style schemes with simpler style strings
336
+ - [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal
337
+
338
+ ## Maintainers
339
+
340
+ - [Sindre Sorhus](https://github.com/sindresorhus)
341
+ - [Josh Junon](https://github.com/qix-)
@@ -0,0 +1,229 @@
1
+ 'use strict';
2
+ const ansiStyles = require('ansi-styles');
3
+ const {stdout: stdoutColor, stderr: stderrColor} = require('supports-color');
4
+ const {
5
+ stringReplaceAll,
6
+ stringEncaseCRLFWithFirstIndex
7
+ } = require('./util');
8
+
9
+ const {isArray} = Array;
10
+
11
+ // `supportsColor.level` → `ansiStyles.color[name]` mapping
12
+ const levelMapping = [
13
+ 'ansi',
14
+ 'ansi',
15
+ 'ansi256',
16
+ 'ansi16m'
17
+ ];
18
+
19
+ const styles = Object.create(null);
20
+
21
+ const applyOptions = (object, options = {}) => {
22
+ if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
23
+ throw new Error('The `level` option should be an integer from 0 to 3');
24
+ }
25
+
26
+ // Detect level if not set manually
27
+ const colorLevel = stdoutColor ? stdoutColor.level : 0;
28
+ object.level = options.level === undefined ? colorLevel : options.level;
29
+ };
30
+
31
+ class ChalkClass {
32
+ constructor(options) {
33
+ // eslint-disable-next-line no-constructor-return
34
+ return chalkFactory(options);
35
+ }
36
+ }
37
+
38
+ const chalkFactory = options => {
39
+ const chalk = {};
40
+ applyOptions(chalk, options);
41
+
42
+ chalk.template = (...arguments_) => chalkTag(chalk.template, ...arguments_);
43
+
44
+ Object.setPrototypeOf(chalk, Chalk.prototype);
45
+ Object.setPrototypeOf(chalk.template, chalk);
46
+
47
+ chalk.template.constructor = () => {
48
+ throw new Error('`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.');
49
+ };
50
+
51
+ chalk.template.Instance = ChalkClass;
52
+
53
+ return chalk.template;
54
+ };
55
+
56
+ function Chalk(options) {
57
+ return chalkFactory(options);
58
+ }
59
+
60
+ for (const [styleName, style] of Object.entries(ansiStyles)) {
61
+ styles[styleName] = {
62
+ get() {
63
+ const builder = createBuilder(this, createStyler(style.open, style.close, this._styler), this._isEmpty);
64
+ Object.defineProperty(this, styleName, {value: builder});
65
+ return builder;
66
+ }
67
+ };
68
+ }
69
+
70
+ styles.visible = {
71
+ get() {
72
+ const builder = createBuilder(this, this._styler, true);
73
+ Object.defineProperty(this, 'visible', {value: builder});
74
+ return builder;
75
+ }
76
+ };
77
+
78
+ const usedModels = ['rgb', 'hex', 'keyword', 'hsl', 'hsv', 'hwb', 'ansi', 'ansi256'];
79
+
80
+ for (const model of usedModels) {
81
+ styles[model] = {
82
+ get() {
83
+ const {level} = this;
84
+ return function (...arguments_) {
85
+ const styler = createStyler(ansiStyles.color[levelMapping[level]][model](...arguments_), ansiStyles.color.close, this._styler);
86
+ return createBuilder(this, styler, this._isEmpty);
87
+ };
88
+ }
89
+ };
90
+ }
91
+
92
+ for (const model of usedModels) {
93
+ const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1);
94
+ styles[bgModel] = {
95
+ get() {
96
+ const {level} = this;
97
+ return function (...arguments_) {
98
+ const styler = createStyler(ansiStyles.bgColor[levelMapping[level]][model](...arguments_), ansiStyles.bgColor.close, this._styler);
99
+ return createBuilder(this, styler, this._isEmpty);
100
+ };
101
+ }
102
+ };
103
+ }
104
+
105
+ const proto = Object.defineProperties(() => {}, {
106
+ ...styles,
107
+ level: {
108
+ enumerable: true,
109
+ get() {
110
+ return this._generator.level;
111
+ },
112
+ set(level) {
113
+ this._generator.level = level;
114
+ }
115
+ }
116
+ });
117
+
118
+ const createStyler = (open, close, parent) => {
119
+ let openAll;
120
+ let closeAll;
121
+ if (parent === undefined) {
122
+ openAll = open;
123
+ closeAll = close;
124
+ } else {
125
+ openAll = parent.openAll + open;
126
+ closeAll = close + parent.closeAll;
127
+ }
128
+
129
+ return {
130
+ open,
131
+ close,
132
+ openAll,
133
+ closeAll,
134
+ parent
135
+ };
136
+ };
137
+
138
+ const createBuilder = (self, _styler, _isEmpty) => {
139
+ const builder = (...arguments_) => {
140
+ if (isArray(arguments_[0]) && isArray(arguments_[0].raw)) {
141
+ // Called as a template literal, for example: chalk.red`2 + 3 = {bold ${2+3}}`
142
+ return applyStyle(builder, chalkTag(builder, ...arguments_));
143
+ }
144
+
145
+ // Single argument is hot path, implicit coercion is faster than anything
146
+ // eslint-disable-next-line no-implicit-coercion
147
+ return applyStyle(builder, (arguments_.length === 1) ? ('' + arguments_[0]) : arguments_.join(' '));
148
+ };
149
+
150
+ // We alter the prototype because we must return a function, but there is
151
+ // no way to create a function with a different prototype
152
+ Object.setPrototypeOf(builder, proto);
153
+
154
+ builder._generator = self;
155
+ builder._styler = _styler;
156
+ builder._isEmpty = _isEmpty;
157
+
158
+ return builder;
159
+ };
160
+
161
+ const applyStyle = (self, string) => {
162
+ if (self.level <= 0 || !string) {
163
+ return self._isEmpty ? '' : string;
164
+ }
165
+
166
+ let styler = self._styler;
167
+
168
+ if (styler === undefined) {
169
+ return string;
170
+ }
171
+
172
+ const {openAll, closeAll} = styler;
173
+ if (string.indexOf('\u001B') !== -1) {
174
+ while (styler !== undefined) {
175
+ // Replace any instances already present with a re-opening code
176
+ // otherwise only the part of the string until said closing code
177
+ // will be colored, and the rest will simply be 'plain'.
178
+ string = stringReplaceAll(string, styler.close, styler.open);
179
+
180
+ styler = styler.parent;
181
+ }
182
+ }
183
+
184
+ // We can move both next actions out of loop, because remaining actions in loop won't have
185
+ // any/visible effect on parts we add here. Close the styling before a linebreak and reopen
186
+ // after next line to fix a bleed issue on macOS: https://github.com/chalk/chalk/pull/92
187
+ const lfIndex = string.indexOf('\n');
188
+ if (lfIndex !== -1) {
189
+ string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
190
+ }
191
+
192
+ return openAll + string + closeAll;
193
+ };
194
+
195
+ let template;
196
+ const chalkTag = (chalk, ...strings) => {
197
+ const [firstString] = strings;
198
+
199
+ if (!isArray(firstString) || !isArray(firstString.raw)) {
200
+ // If chalk() was called by itself or with a string,
201
+ // return the string itself as a string.
202
+ return strings.join(' ');
203
+ }
204
+
205
+ const arguments_ = strings.slice(1);
206
+ const parts = [firstString.raw[0]];
207
+
208
+ for (let i = 1; i < firstString.length; i++) {
209
+ parts.push(
210
+ String(arguments_[i - 1]).replace(/[{}\\]/g, '\\$&'),
211
+ String(firstString.raw[i])
212
+ );
213
+ }
214
+
215
+ if (template === undefined) {
216
+ template = require('./templates');
217
+ }
218
+
219
+ return template(chalk, parts.join(''));
220
+ };
221
+
222
+ Object.defineProperties(Chalk.prototype, styles);
223
+
224
+ const chalk = Chalk(); // eslint-disable-line new-cap
225
+ chalk.supportsColor = stdoutColor;
226
+ chalk.stderr = Chalk({level: stderrColor ? stderrColor.level : 0}); // eslint-disable-line new-cap
227
+ chalk.stderr.supportsColor = stderrColor;
228
+
229
+ module.exports = chalk;
@@ -0,0 +1,134 @@
1
+ 'use strict';
2
+ const TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
3
+ const STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
4
+ const STRING_REGEX = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;
5
+ const ESCAPE_REGEX = /\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;
6
+
7
+ const ESCAPES = new Map([
8
+ ['n', '\n'],
9
+ ['r', '\r'],
10
+ ['t', '\t'],
11
+ ['b', '\b'],
12
+ ['f', '\f'],
13
+ ['v', '\v'],
14
+ ['0', '\0'],
15
+ ['\\', '\\'],
16
+ ['e', '\u001B'],
17
+ ['a', '\u0007']
18
+ ]);
19
+
20
+ function unescape(c) {
21
+ const u = c[0] === 'u';
22
+ const bracket = c[1] === '{';
23
+
24
+ if ((u && !bracket && c.length === 5) || (c[0] === 'x' && c.length === 3)) {
25
+ return String.fromCharCode(parseInt(c.slice(1), 16));
26
+ }
27
+
28
+ if (u && bracket) {
29
+ return String.fromCodePoint(parseInt(c.slice(2, -1), 16));
30
+ }
31
+
32
+ return ESCAPES.get(c) || c;
33
+ }
34
+
35
+ function parseArguments(name, arguments_) {
36
+ const results = [];
37
+ const chunks = arguments_.trim().split(/\s*,\s*/g);
38
+ let matches;
39
+
40
+ for (const chunk of chunks) {
41
+ const number = Number(chunk);
42
+ if (!Number.isNaN(number)) {
43
+ results.push(number);
44
+ } else if ((matches = chunk.match(STRING_REGEX))) {
45
+ results.push(matches[2].replace(ESCAPE_REGEX, (m, escape, character) => escape ? unescape(escape) : character));
46
+ } else {
47
+ throw new Error(`Invalid Chalk template style argument: ${chunk} (in style '${name}')`);
48
+ }
49
+ }
50
+
51
+ return results;
52
+ }
53
+
54
+ function parseStyle(style) {
55
+ STYLE_REGEX.lastIndex = 0;
56
+
57
+ const results = [];
58
+ let matches;
59
+
60
+ while ((matches = STYLE_REGEX.exec(style)) !== null) {
61
+ const name = matches[1];
62
+
63
+ if (matches[2]) {
64
+ const args = parseArguments(name, matches[2]);
65
+ results.push([name].concat(args));
66
+ } else {
67
+ results.push([name]);
68
+ }
69
+ }
70
+
71
+ return results;
72
+ }
73
+
74
+ function buildStyle(chalk, styles) {
75
+ const enabled = {};
76
+
77
+ for (const layer of styles) {
78
+ for (const style of layer.styles) {
79
+ enabled[style[0]] = layer.inverse ? null : style.slice(1);
80
+ }
81
+ }
82
+
83
+ let current = chalk;
84
+ for (const [styleName, styles] of Object.entries(enabled)) {
85
+ if (!Array.isArray(styles)) {
86
+ continue;
87
+ }
88
+
89
+ if (!(styleName in current)) {
90
+ throw new Error(`Unknown Chalk style: ${styleName}`);
91
+ }
92
+
93
+ current = styles.length > 0 ? current[styleName](...styles) : current[styleName];
94
+ }
95
+
96
+ return current;
97
+ }
98
+
99
+ module.exports = (chalk, temporary) => {
100
+ const styles = [];
101
+ const chunks = [];
102
+ let chunk = [];
103
+
104
+ // eslint-disable-next-line max-params
105
+ temporary.replace(TEMPLATE_REGEX, (m, escapeCharacter, inverse, style, close, character) => {
106
+ if (escapeCharacter) {
107
+ chunk.push(unescape(escapeCharacter));
108
+ } else if (style) {
109
+ const string = chunk.join('');
110
+ chunk = [];
111
+ chunks.push(styles.length === 0 ? string : buildStyle(chalk, styles)(string));
112
+ styles.push({inverse, styles: parseStyle(style)});
113
+ } else if (close) {
114
+ if (styles.length === 0) {
115
+ throw new Error('Found extraneous } in Chalk template literal');
116
+ }
117
+
118
+ chunks.push(buildStyle(chalk, styles)(chunk.join('')));
119
+ chunk = [];
120
+ styles.pop();
121
+ } else {
122
+ chunk.push(character);
123
+ }
124
+ });
125
+
126
+ chunks.push(chunk.join(''));
127
+
128
+ if (styles.length > 0) {
129
+ const errMessage = `Chalk template literal is missing ${styles.length} closing bracket${styles.length === 1 ? '' : 's'} (\`}\`)`;
130
+ throw new Error(errMessage);
131
+ }
132
+
133
+ return chunks.join('');
134
+ };