chrisburnell 33.0.3 → 33.0.5

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.5",
4
4
  "description": "Chris Burnell Metadata",
5
5
  "main": "./src/index.js",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  "type": "module",
10
10
  "scripts": {
11
11
  "default": "node src/cmd.js",
12
+ "start": "npm run default",
12
13
  "test": "node --test"
13
14
  },
14
15
  "engines": {
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,69 +1,38 @@
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
+ import * as md from "./metadata.js"
3
4
 
4
- const pkg = JSON.parse(fs.readFileSync("package.json"))
5
+ const require = createRequire(import.meta.url)
6
+ const pkg = require("../package.json")
5
7
 
6
- updateNotifier({ pkg }).notify();
8
+ updateNotifier({ pkg }).notify()
7
9
 
8
- export const name = "Chris Burnell"
9
- export const location = "Singapore"
10
- export const website = "https://chrisburnell.com"
11
- export const bluesky = "chrisburnell.com"
12
- export const codepen = "chrisburnell"
13
- export const discord = "809487481308708936"
14
- export const github = "chrisburnell"
15
- export const indieweb = "chrisburnell.com"
16
- export const lastfm = "chrisburnell"
17
- export const linkedin = "chrisburnell"
18
- export const mastodon = "@chrisburnell@repc.co"
19
- export const mastodon_domain = "fediverse.repc.co"
20
- export const nintendo = "SW-5773-6068-9986"
21
- export const npm = "chrisburnell"
22
- export const opencollective = "chrisburnell"
23
- export const untappd = "chrisburnell"
24
- export const pgp = "9604F098260A0057"
10
+ export const metadata = md
25
11
 
26
- export const metadata = [
27
- name,
28
- location,
29
- website,
30
- bluesky,
31
- codepen,
32
- discord,
33
- github,
34
- indieweb,
35
- lastfm,
36
- linkedin,
37
- mastodon,
38
- mastodon_domain,
39
- nintendo,
40
- npm,
41
- opencollective,
42
- untappd,
43
- pgp,
44
- ]
45
12
 
46
13
  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);
14
+ const intro = `Hey, I’m ${metadata.name} (v${pkg.version})`
15
+ const tagline = `and I’m Ravenous for CSS! ☺`
16
+ const separator = '-'.repeat(Math.max(intro.length, tagline.length))
49
17
 
50
18
  console.log(`
51
19
  ${intro}
52
- ${sep}
53
- Location: ${location}
54
- Website: ${website}
55
- Bluesky: https://bsky.app/profile/${bluesky}
56
- Codepen: https://codepen.io/${codepen}
57
- Discord: https://discordapp.com/users/${discord}
58
- GitHub: https://github.com/${github}
59
- IndieWeb: https://indieweb.org/User:${indieweb}
60
- LastFM: https://last.fm/user/${lastfm}
61
- LinkedIn: https://www.linkedin.com/in/${linkedin}
62
- Mastodon: https://${mastodon_domain}/@${mastodon.split("@").slice(0, -1).join("")}
63
- Nintendo: ${nintendo}
64
- npm: https://www.npmjs.com/~${npm}
65
- OpenCollective: https://opencollective.com/${opencollective}
66
- PGP: ${pgp}
67
- Untappd: https://untappd.com/user/${untappd}
68
- `);
69
- };
20
+ ${tagline}
21
+ ${separator}
22
+ Location: ${metadata.location}
23
+ Website: ${metadata.website}
24
+ Bluesky: https://bsky.app/profile/${metadata.bluesky}
25
+ Codepen: https://codepen.io/${metadata.codepen}
26
+ Discord: https://discordapp.com/users/${metadata.discord}
27
+ GitHub: https://github.com/${metadata.github}
28
+ IndieWeb: https://indieweb.org/User:${metadata.indieweb}
29
+ LastFM: https://last.fm/user/${metadata.lastfm}
30
+ LinkedIn: https://www.linkedin.com/in/${metadata.linkedin}
31
+ Mastodon: https://${metadata.mastodon_domain}/@${metadata.mastodon.split("@").slice(0, -1).join("")}
32
+ Nintendo: ${metadata.nintendo}
33
+ npm: https://www.npmjs.com/~${metadata.npm}
34
+ OpenCollective: https://opencollective.com/${metadata.opencollective}
35
+ PGP: ${metadata.pgp}
36
+ Untappd: https://untappd.com/user/${metadata.untappd}
37
+ `)
38
+ }
@@ -0,0 +1,17 @@
1
+ export const name = "Chris Burnell"
2
+ export const location = "Singapore"
3
+ export const website = "https://chrisburnell.com"
4
+ export const bluesky = "chrisburnell.com"
5
+ export const codepen = "chrisburnell"
6
+ export const discord = "809487481308708936"
7
+ export const github = "chrisburnell"
8
+ export const indieweb = "chrisburnell.com"
9
+ export const lastfm = "chrisburnell"
10
+ export const linkedin = "chrisburnell"
11
+ export const mastodon = "@chrisburnell@repc.co"
12
+ export const mastodon_domain = "fediverse.repc.co"
13
+ export const nintendo = "SW-5773-6068-9986"
14
+ export const npm = "chrisburnell"
15
+ export const opencollective = "chrisburnell"
16
+ export const untappd = "chrisburnell"
17
+ export const pgp = "9604F098260A0057"