brain-implosion-energy 1.0.0 → 1.1.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/index.mts +17 -0
- package/package.json +5 -1
package/index.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NextFunction, Request, Response } from "express";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* About the package
|
|
3
5
|
*/
|
|
@@ -61,4 +63,19 @@ export class Can<T> {
|
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
/**
|
|
67
|
+
* The app for `express`
|
|
68
|
+
* @param req
|
|
69
|
+
* @param res
|
|
70
|
+
* @param next
|
|
71
|
+
*/
|
|
72
|
+
export function BIEapp(req: Request, res: Response, next: NextFunction){
|
|
73
|
+
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!")
|
|
74
|
+
next()
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export async function BIEfetch(){
|
|
78
|
+
return (await fetch("https://angelsites.neocities.org/bie.txt")).text()
|
|
79
|
+
}
|
|
80
|
+
|
|
64
81
|
export default about
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brain-implosion-energy",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "10,000 packages of unutility!",
|
|
5
5
|
"main": "index.mts",
|
|
6
6
|
"scripts": {
|
|
@@ -12,5 +12,9 @@
|
|
|
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"
|
|
15
19
|
}
|
|
16
20
|
}
|