Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-dotenv

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-dotenv - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

6

CHANGELOG.md

@@ -18,2 +18,8 @@ # Changelog

## [0.2.0] - 2018-7-17
### Fixed
- Compatibility with RN 0.56 (Babel 7) (#42)
## [0.1.1] - 2018-1-14

@@ -20,0 +26,0 @@

4

index.js
var path = require('path');
module.exports = {
module.exports = () => ({
plugins: [

@@ -10,2 +10,2 @@ [require('babel-plugin-dotenv'), {

],
};
});
{
"name": "react-native-dotenv",
"version": "0.1.1",
"version": "0.2.0",
"description": "A Babel preset let you `import` application configs from **.env** file (zero runtime dependency)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,4 +17,12 @@ # react-native-dotenv

### RN (0.56+) (Babel 7)
```json
{
"presets": ["react-native", "module:react-native-dotenv"]
}
```
### RN (<0.56)
```json
{
"presets": ["react-native", "react-native-dotenv"]

@@ -47,3 +55,3 @@ }

## How does it works?
## How does it work?

@@ -50,0 +58,0 @@ As you can see, it's implemented as a babel plugin. All referenced imported members are replaced as the values specified in the **.env** file.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc