chrisburnell 33.0.3 → 33.0.4

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
@@ -21,10 +21,10 @@ npx chrisburnell
21
21
  ### Programmatic
22
22
 
23
23
  ```js
24
- import chrisburnell from "chrisburnell";
24
+ import chrisburnell from "chrisburnell"
25
25
 
26
26
  // or in CommonJS
27
- // const chrisburnell = await import("chrisburnell");
27
+ // const chrisburnell = await import("chrisburnell")
28
28
 
29
- chrisburnell();
29
+ chrisburnell()
30
30
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chrisburnell",
3
- "version": "33.0.3",
3
+ "version": "33.0.4",
4
4
  "description": "Chris Burnell Metadata",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
package/src/cmd.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import chrisburnell from "./index.js";
2
+ import chrisburnell from "./index.js"
3
3
 
4
- chrisburnell();
4
+ chrisburnell()
package/src/index.js CHANGED
@@ -1,9 +1,10 @@
1
- import fs from "node:fs";
2
- import updateNotifier from "update-notifier";
1
+ import { createRequire } from "node:module"
2
+ import updateNotifier from "update-notifier"
3
3
 
4
- const pkg = JSON.parse(fs.readFileSync("package.json"))
4
+ const require = createRequire(import.meta.url)
5
+ const pkg = require("../package.json")
5
6
 
6
- updateNotifier({ pkg }).notify();
7
+ updateNotifier({ pkg }).notify()
7
8
 
8
9
  export const name = "Chris Burnell"
9
10
  export const location = "Singapore"
@@ -44,8 +45,8 @@ export const metadata = [
44
45
  ]
45
46
 
46
47
  export default function() {
47
- let intro = `Hey, I’m ${name}, and I’m Ravenous for CSS! (v${pkg.version})`;
48
- let sep = '-'.repeat(intro.length);
48
+ let intro = `Hey, I’m ${name}, and I’m Ravenous for CSS! (v${pkg.version})`
49
+ let sep = '-'.repeat(intro.length)
49
50
 
50
51
  console.log(`
51
52
  ${intro}
@@ -65,5 +66,5 @@ export default function() {
65
66
  OpenCollective: https://opencollective.com/${opencollective}
66
67
  PGP: ${pgp}
67
68
  Untappd: https://untappd.com/user/${untappd}
68
- `);
69
- };
69
+ `)
70
+ }