0.1.24 • Published 2 years ago

dotenv-next v0.1.24

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

dotenv-next

Load environment variables in your scripts following the priority specification popularized by Next.js.

This package is a thin wrapper around the internal @next/env package from Next.js. It adds an little register hook which allows your to register your environment variables at the top of script files.

#!/usr/bin/env node

import 'dotenv-next/register'

const main = async () => {
  await new Promise((resolve) =>
    setTimeout(() => {
      console.log(process.env.NODE_ENV)
    }, 1000),
  )
}

main()
  .catch((error) => {
    console.log(error)
    process.exit(1)
  })
  .finally(() => {
    process.exit(0)
  })
0.1.24

2 years ago

0.1.23

2 years ago

0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.0

2 years ago