0.3.1 • Published 4 years ago
@ssen/env v0.3.1
@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);