0.1.24 • Published 3 years ago

dotenv-next v0.1.24

Weekly downloads
-
License
MIT
Repository
github
Last release
3 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

3 years ago

0.1.23

4 years ago

0.1.22

4 years ago

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.0

4 years ago