brain-implosion-energy 1.0.0 → 1.2.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.
Files changed (2) hide show
  1. package/index.mts +19 -0
  2. package/package.json +6 -1
package/index.mts CHANGED
@@ -1,3 +1,6 @@
1
+ import { NextFunction, Request, Response } from "express";
2
+ import { request as UndiciRequest } from "undici";
3
+
1
4
  /**
2
5
  * About the package
3
6
  */
@@ -61,4 +64,20 @@ export class Can<T> {
61
64
  }
62
65
  }
63
66
 
67
+ /**
68
+ * The app for `express`
69
+ * @param req
70
+ * @param res
71
+ * @param next
72
+ */
73
+ export function BIEapp(req: Request, res: Response, next: NextFunction){
74
+ res.send("Brain implosion energy, 10000 grams of pure caffeine!<br>This was made by the <a href='https://www.npmjs.com/package/brain-implosion-energy'>brain-implosion-energy</a> package. Check it out dude!")
75
+ next()
76
+ }
77
+
78
+ export async function BIEfetch(){
79
+ const pureCaffeine = await UndiciRequest("https://angelsites.neocities.org/bie.txt")
80
+ return pureCaffeine.body.text()
81
+ }
82
+
64
83
  export default about
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brain-implosion-energy",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "10,000 packages of unutility!",
5
5
  "main": "index.mts",
6
6
  "scripts": {
@@ -12,5 +12,10 @@
12
12
  "type": "module",
13
13
  "devDependencies": {
14
14
  "@types/node": "^25.5.2"
15
+ },
16
+ "dependencies": {
17
+ "@types/express": "^5.0.6",
18
+ "express": "^5.2.1",
19
+ "undici": "^8.0.2"
15
20
  }
16
21
  }