Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yodalightsabr/replit-env
Keep your code private without hacker plan
https://github.com/yodalightsabr/replit-env
Last synced: 16 days ago
JSON representation
Keep your code private without hacker plan
- Host: GitHub
- URL: https://github.com/yodalightsabr/replit-env
- Owner: YodaLightsabr
- License: mit
- Created: 2021-03-13T20:14:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-13T20:22:59.000Z (over 3 years ago)
- Last Synced: 2024-10-11T11:49:28.714Z (about 1 month ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Replit-Env
Keep your code private without hacker plan## How to compile
To compile, just download and run `compile.js`. Just enter the file name for the source and destination, and you'll be good to go.## How to run
To run, make sure your `.env` contains the compiled code. Next, install the `replit-env` module and require it. Then run the function and it will import the code from the `.env` file, write it to a file, require that file, and then delete the file. You can now run code with the source hidden.## Example
`index.js`:
```js
const env = require('replit-env');
env();
```
`.env`:
```
L0=console.log("Hello, world!");
```
console output:
```
Hello, world!
```