Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F996219
make-env.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
385 B
Referenced Files
None
Subscribers
None
make-env.ts
View Options
import
os
from
"os"
;
import
{
promises
as
fs
}
from
"fs"
;
import
_locreq
from
"locreq"
;
const
target_locreq
=
_locreq
(
process
.
cwd
());
export
async
function
makeEnv
()
:
Promise
<
void
>
{
const
{
uid
,
gid
}
=
os
.
userInfo
();
const
content
=
`USER_ID=
${
uid
}
GROUP_ID=
${
gid
}
`
;
const
path
=
target_locreq
.
resolve
(
".env"
);
await
fs
.
writeFile
(
path
,
content
);
console
.
log
(
"wrote .env"
);
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Dec 24, 14:02 (21 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557116
Default Alt Text
make-env.ts (385 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment