UNPKG
@imduchuyyy/crypt-env
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.1.0
Secure environment manager with profile-based encrypted storage
github.com/imduchuyyy/crypt-env
@imduchuyyy/crypt-env
/
cmd
/
get.ts
7 lines
(5 loc)
•
226 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{ loadOrCreateProfile }
from
'../shared'
;
export
async
function
getVariable
(
profile
:
string
,
key
:
string
) {
const
{ env } =
await
loadOrCreateProfile
(profile);
console
.
log
(
`
${key}
=
${env[key] ||
'(undefined)'
}
`
); }