noseglid / base85

:sound: nodejs base85 encoding and decoding

Home Page:https://npmjs.com/base85

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide a CLI tool for devops

balupton opened this issue · comments

Would be nice if there was a cli tool for this, so I could easily swap things out like:

env GOOGLE_OAUTH="$(cat ./.env/google-oauth.json | jq -c . | base64)" GOOGLE_SERVICE="$(cat ./.env/google-service.json | jq -c . | base64)" ts-node ./api/google.ts
now secret rm google-service && now secret add google-service "$(cat ./.env/google-service.json | jq -c . | base64)"

to

env GOOGLE_OAUTH="$(cat ./.env/google-oauth.json | jq -c . | base85 -e z85)" GOOGLE_SERVICE="$(cat ./.env/google-service.json | jq -c . | base85 -e z85)" ts-node ./api/google.ts
now secret rm google-service && now secret add google-service "$(cat ./.env/google-service.json | jq -c . | base85 -e z85)"