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 +3 -3
- package/package.json +1 -1
- package/src/cmd.js +2 -2
- package/src/index.js +9 -8
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
package/src/cmd.js
CHANGED
package/src/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import updateNotifier from "update-notifier"
|
|
1
|
+
import { createRequire } from "node:module"
|
|
2
|
+
import updateNotifier from "update-notifier"
|
|
3
3
|
|
|
4
|
-
const
|
|
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
|
+
}
|