0.3.1 • Published 4 years ago

@ssen/env v0.3.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@ssen/env

Create a map file.

import { TransformEnvFunction } from '@ssen/env';

export default ((env) => {
  return {
    ...env,
    NODE_ENV: 'development',
  }
}) as TransformEnvFunction;

And, you can map your env with the map file.

import { mapEnv } from '@ssen/env';

const mappedEnv: NodeJs.ProcessEnv = mapEnv('.env')(process.env);
0.3.6

4 years ago

0.3.5

4 years ago

0.3.4

4 years ago

0.3.1

4 years ago