zachleat 40.0.1 → 42.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Zach Leatherman
3
+ Copyright (c) 2018–2025 Zach Leatherman
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,6 +1,6 @@
1
1
  # zachleat
2
2
 
3
- Meta package for @zachleat the person
3
+ Meta package for Zach Leatherman
4
4
 
5
5
  ## Installation
6
6
 
@@ -21,7 +21,15 @@ npx zachleat
21
21
  ### Programmatic
22
22
 
23
23
  ```js
24
- const zachleat = require("zachleat");
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
+ * `v42` Bump `update-notifier` from v5 to [v6](https://github.com/sindresorhus/update-notifier/releases/tag/v6.0.0) (ESM) to [v7](https://github.com/sindresorhus/update-notifier/releases/tag/v7.0.0) (Node 18+)
35
+ * `v41` Upgraded to ESM.
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "zachleat",
3
- "version": "40.0.1",
4
- "description": "Meta package for @zachleat the person",
3
+ "version": "42.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": "npx ava"
12
+ "test": "node --test"
12
13
  },
13
14
  "engines": {
14
- "node": ">=14"
15
+ "node": ">=18"
15
16
  },
16
17
  "repository": {
17
18
  "type": "git",
@@ -23,10 +24,7 @@
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
- "update-notifier": "^5.1.0"
28
+ "update-notifier": "^7.3.1"
31
29
  }
32
30
  }
package/src/cmd.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- const zachleat = require("./index");
2
+ import zachleat from "./index.js";
3
3
 
4
4
  zachleat();
package/src/index.js CHANGED
@@ -1,13 +1,20 @@
1
- const updateNotifier = require("update-notifier");
2
- const pkg = require("../package.json");
1
+ import updateNotifier from "update-notifier";
2
+ import pkg from "../package.json" with { type: "json" };
3
3
 
4
4
  updateNotifier({ pkg }).notify();
5
5
 
6
- module.exports = function() {
7
- console.log( ` Hi, I’m Zach.
6
+ export default function() {
7
+ let intro = `Zach Leatherman (v${pkg.version})`;
8
+ let sep = '-'.repeat(intro.length);
8
9
 
9
- Web: https://zachleat.com/
10
- Twitter: https://twitter.com/zachleat
11
- GitHub: https://github.com/zachleat
10
+ console.log( `${intro}
11
+ ${sep}
12
+ Web https://zachleat.com/
13
+ 11ty https://www.11ty.dev/
14
+ Mastodon https://zachleat.com/@zachleat
15
+ Bluesky https://bsky.app/profile/zachleat.com
16
+ GitHub https://github.com/zachleat
17
+ npm https://www.npmjs.com/~zachleat
18
+ LinkedIn https://www.linkedin.com/in/zachleat/
12
19
  ` );
13
20
  };
package/test/test.js DELETED
@@ -1,11 +0,0 @@
1
- const test = require("ava");
2
- const zachleat = require("../")
3
-
4
- test("Status", t => {
5
- t.true(true, "Everything is fine.");
6
- });
7
-
8
- test("Output", t => {
9
- zachleat();
10
- t.true(true);
11
- });