real-world-css-libraries 1.0.0 → 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 **
|
|
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
|
-
[
|
|
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',
|
|
@@ -114,14 +115,15 @@ function getSource (filePath) {
|
|
|
114
115
|
}
|
|
115
116
|
function getSourceWithoutURL (source) {
|
|
116
117
|
return source
|
|
117
|
-
.split('
|
|
118
|
+
.split('\n')
|
|
118
119
|
.toSpliced(0, 1)
|
|
119
|
-
.join('');
|
|
120
|
+
.join('\n');
|
|
120
121
|
}
|
|
121
122
|
function getUrlFromSource (source) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
const firstLine = source.split('\n')[0];
|
|
124
|
+
return firstLine
|
|
125
|
+
.replace('/* ', '')
|
|
126
|
+
.replace(' */', '');
|
|
125
127
|
}
|
|
126
128
|
function validate (source) {
|
|
127
129
|
const firstLine = source.split('\n')[0];
|
|
@@ -140,6 +142,7 @@ export default function (includeUrl) {
|
|
|
140
142
|
const filePath = join(libsPath, fileName);
|
|
141
143
|
const sourceWithUrl = getSource(filePath);
|
|
142
144
|
const library = {
|
|
145
|
+
fileName,
|
|
143
146
|
name: getFullName(fileName),
|
|
144
147
|
version: getVersion(fileName),
|
|
145
148
|
license: getLicences(fileName),
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "real-world-css-libraries",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"bump": "npx --yes -- @jsdevtools/version-bump-prompt && npm i",
|
|
7
8
|
"test": "node ./test.js"
|
|
8
9
|
},
|
|
9
10
|
"homepage": "https://github.com/TheJaredWilcurt/real-world-css-libraries#readme",
|
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
|
-
|
|
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);
|
|
File without changes
|