real-world-css-libraries 1.0.1 → 1.0.2

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/README.md CHANGED
@@ -25,6 +25,7 @@ console.log(libraries);
25
25
  /*
26
26
  * [
27
27
  * {
28
+ * fileName: '960.gs-v0.0.0.css',
28
29
  * name: '960.gs',
29
30
  * version: 'v1.0.0',
30
31
  * license: 'GPL-3.0 or MIT',
@@ -32,6 +33,7 @@ console.log(libraries);
32
33
  * size: 9989
33
34
  * },
34
35
  * {
36
+ * fileName: 'animate-v4.1.1.css',
35
37
  * name: 'Animate',
36
38
  * version: 'v4.1.1',
37
39
  * license: 'Hippocratic-2.1',
@@ -55,6 +57,19 @@ console.log(namesOfLibrariesCompatibleWithMITLicense);
55
57
  ```
56
58
 
57
59
 
60
+ ## Non-npm usage
61
+
62
+ If you are using a different programming language/package management system and can't `npm i` this library, you have some other options:
63
+
64
+ 1. Download via `git`
65
+ * `git clone https://github.com/TheJaredWilcurt/real-world-css-libraries.git`
66
+ * `git clone git@github.com:TheJaredWilcurt/real-world-css-libraries.git`
67
+ 1. HTTPS download via UNPKG:
68
+ * https://app.unpkg.com/real-world-css-libraries
69
+ 1. Manually download repo as a ZIP file:
70
+ * https://github.com/TheJaredWilcurt/real-world-css-libraries/archive/refs/heads/main.zip
71
+
72
+
58
73
  ## Adding a library
59
74
 
60
75
  1. Ensure it is part of a public repo that has an open source license
@@ -82,7 +97,7 @@ These libraries were explicitly not included because they lack a compatible lice
82
97
 
83
98
  ## Libraries included:
84
99
 
85
- There are **150** files totaling **33.31MB** of unminified CSS.
100
+ There are **151** files totaling **33.32MB** of unminified CSS.
86
101
 
87
102
  Library | License
88
103
  :-- | :--
@@ -116,7 +131,7 @@ Library | License
116
131
  [cs16.css](https://github.com/ekmas/cs16.css/blob/main/css/cs16.css) | MIT
117
132
  [CSS Diner](https://github.com/flukeout/css-diner/blob/develop/css/style.css) | MPL-2.0
118
133
  [CSS Plot](https://github.com/asciimoo/cssplot/blob/master/build/cssplot.full.css) | MIT
119
- [Css Social Buttons](https://github.com/smcllns/css-social-buttons/blob/master/css/zocial.css) | MIT
134
+ [CSS Social Buttons](https://github.com/smcllns/css-social-buttons/blob/master/css/zocial.css) | MIT
120
135
  [CSS Spinners](https://github.com/jlong/css-spinners/blob/master/css/spinners.css) | MIT
121
136
  [CSS Zen Garden #215](https://github.com/mezzoblue/csszengarden.com/blob/master/215/215.css) | CC-BY-NC-SA-1.0
122
137
  [css-extras](https://github.com/sindresorhus/css-extras/blob/main/index.css) | CC0-1.0 or MIT
@@ -236,3 +251,4 @@ Library | License
236
251
  [Windows 98](https://github.com/yocontra/windows_98.css/blob/master/dist/win98.css) | MIT
237
252
  [Wing](https://github.com/kbrsh/wing/blob/master/dist/wing.css) | MIT
238
253
  [WTF Forms](https://github.com/mdo/wtf-forms/blob/master/wtf-forms.css) | MIT
254
+ [Zotero Dark Theme](https://github.com/Rosmaninho/Zotero-Dark-Theme/blob/main/userChrome.css) | GPL-3.0
package/index.js CHANGED
@@ -18,6 +18,7 @@ const nameMap = {
18
18
  'css3-buttons': 'CSS3 Buttons',
19
19
  'css-diner': 'CSS Diner',
20
20
  'css-extras': 'css-extras',
21
+ 'css-social-buttons': 'CSS Social Buttons',
21
22
  'css-spinners': 'CSS Spinners',
22
23
  cssco: 'CSSCO',
23
24
  cssicon: 'cssicon',
@@ -141,6 +142,7 @@ export default function (includeUrl) {
141
142
  const filePath = join(libsPath, fileName);
142
143
  const sourceWithUrl = getSource(filePath);
143
144
  const library = {
145
+ fileName,
144
146
  name: getFullName(fileName),
145
147
  version: getVersion(fileName),
146
148
  license: getLicences(fileName),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "real-world-css-libraries",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test.js CHANGED
@@ -24,11 +24,13 @@ function printTableAndTotal (libraries) {
24
24
  const { bytes, MB } = getSize(libraries);
25
25
  const table = libraries
26
26
  .map((library) => {
27
- return {
27
+ const newLibrary = {
28
28
  ...library,
29
29
  source: library.source.slice(0, 20),
30
30
  url: library.url.slice(0, 30).split('//')[1]
31
31
  };
32
+ delete newLibrary.fileName;
33
+ return newLibrary;
32
34
  });
33
35
 
34
36
  console.table(table);