zachleat 40.0.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018 Zach Leatherman
3
+ Copyright (c) 2024 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,14 @@ 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
+ * `v41` Upgraded to ESM.
package/package.json CHANGED
@@ -1,31 +1,29 @@
1
1
  {
2
2
  "name": "zachleat",
3
- "version": "40.0.0",
4
- "description": "Meta package for @zachleat the person",
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": "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",
18
- "url": "git+ssh://git@github.com/zachleat/zachleat.git"
19
+ "url": "git+ssh://git@github.com/zachleat/package-zachleat.git"
19
20
  },
20
21
  "author": "Zach Leatherman",
21
22
  "license": "MIT",
22
23
  "bugs": {
23
- "url": "https://github.com/zachleat/zachleat/issues"
24
- },
25
- "homepage": "https://github.com/zachleat/zachleat#readme",
26
- "devDependencies": {
27
- "ava": "^5.1.1"
24
+ "url": "https://github.com/zachleat/package-zachleat/issues"
28
25
  },
26
+ "homepage": "https://github.com/zachleat/package-zachleat#readme",
29
27
  "dependencies": {
30
28
  "update-notifier": "^5.1.0"
31
29
  }
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,26 @@
1
- const updateNotifier = require("update-notifier");
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
- module.exports = function() {
7
- console.log( ` Hi, I’m Zach.
9
+ export default function() {
10
+ let intro = `I’m Zach (v${pkg.version})`;
11
+ let sep = '-'.repeat(intro.length);
8
12
 
9
- Web: https://zachleat.com/
10
- Twitter: https://twitter.com/zachleat
11
- GitHub: https://github.com/zachleat
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
  };
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
- });