zachleat 40.0.1 → 41.0.0
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 +9 -2
- package/package.json +5 -7
- package/src/cmd.js +1 -1
- package/src/index.js +19 -6
- package/test/test.js +0 -11
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# zachleat
|
|
2
2
|
|
|
3
|
-
Meta package for
|
|
3
|
+
Meta package for Zach Leatherman
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -21,7 +21,14 @@ npx zachleat
|
|
|
21
21
|
### Programmatic
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
|
-
|
|
24
|
+
import zachleat from "zachleat";
|
|
25
|
+
|
|
26
|
+
// or in CommonJS
|
|
27
|
+
// const zachleat = await import("zachleat");
|
|
25
28
|
|
|
26
29
|
zachleat();
|
|
27
30
|
```
|
|
31
|
+
|
|
32
|
+
## Changelog
|
|
33
|
+
|
|
34
|
+
* `v41` Upgraded to ESM.
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zachleat",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Meta package for
|
|
3
|
+
"version": "41.0.0",
|
|
4
|
+
"description": "Meta package for Zach Leatherman",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"zachleat": "./src/cmd.js"
|
|
8
8
|
},
|
|
9
|
+
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"default": "node src/cmd.js",
|
|
11
|
-
"test": "
|
|
12
|
+
"test": "node --test"
|
|
12
13
|
},
|
|
13
14
|
"engines": {
|
|
14
|
-
"node": ">=
|
|
15
|
+
"node": ">=18"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -23,9 +24,6 @@
|
|
|
23
24
|
"url": "https://github.com/zachleat/package-zachleat/issues"
|
|
24
25
|
},
|
|
25
26
|
"homepage": "https://github.com/zachleat/package-zachleat#readme",
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"ava": "^5.1.1"
|
|
28
|
-
},
|
|
29
27
|
"dependencies": {
|
|
30
28
|
"update-notifier": "^5.1.0"
|
|
31
29
|
}
|
package/src/cmd.js
CHANGED
package/src/index.js
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import updateNotifier from "update-notifier";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
|
|
4
|
+
const require = createRequire(import.meta.url);
|
|
2
5
|
const pkg = require("../package.json");
|
|
3
6
|
|
|
4
7
|
updateNotifier({ pkg }).notify();
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
export default function() {
|
|
10
|
+
let intro = `I’m Zach (v${pkg.version})`;
|
|
11
|
+
let sep = '-'.repeat(intro.length);
|
|
8
12
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
13
|
+
console.log( ` ${intro}
|
|
14
|
+
${sep}
|
|
15
|
+
Web: https://zachleat.com/
|
|
16
|
+
11ty: https://www.11ty.dev/
|
|
17
|
+
Mastodon: https://zachleat.com/@zachleat
|
|
18
|
+
GitHub: https://github.com/zachleat
|
|
19
|
+
npm: https://www.npmjs.com/~zachleat
|
|
20
|
+
LinkedIn: https://www.linkedin.com/in/zachleat/
|
|
21
|
+
OpenCollective: https://opencollective.com/zachleat
|
|
22
|
+
Codepen: https://codepen.io/zachleat/
|
|
23
|
+
Bluesky: https://bsky.app/profile/zachleat.com
|
|
24
|
+
Letterboxd: https://letterboxd.com/zachleat/
|
|
12
25
|
` );
|
|
13
26
|
};
|