
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
gui-environment
Advanced tools
The gui-environment package is a command-line tool that simplifies managing environment variables for your application. Easily set up different configurations based on your build mode (development or production) for a smooth development workflow.
The gui-environment
package is a command-line tool that simplifies managing environment variables for your application. Easily set up different configurations based on your build mode (development, staging or production) for a smooth development workflow.
Install the package:
npm install -D gui-environment
Initialize your project's environment:
npx gui-environment --init
# using a custom source path
npx gui-environment --src="custom-src" --init
Include the gui-environment
binary in your package.json
file:
...
"scripts": {
"build-dev": "gui-environment --development && vite && ...",
"build-staging": "gui-environment --staging && vite && ...",
"build-production": "gui-environment --production && tsc -b && vite build && ...",
// using a custom source path
"build-dev": "gui-environment --src='custom-src' --development && vite && ...",
}
...
project
│
src/
│ ├───components/
│ │ └───...
│ ├───environment/
│ | ├───environment.development.ts
│ | ├───environment.production.ts
│ | ├───environment.staging.ts
│ | ├───environment.ts
│ | └───types.ts
│ └───main.tsx
│
package.json
tsconfig.json
...
Once initialized, include your environment variables in the following files accordingly:
environment.development.ts
environment.production.ts
environment.staging.ts
types.ts
Use the environment variables anywhere:
// main.tsx
import { ENVIRONMENT } from './environment/environment.ts';
ENVIRONMENT
// {
// production: false,
// version: '1.0.0'
// }
Important: keep in mind that whatever data you include in these files will be public when your app is deployed. Avoid sharing sensitive information such as API keys, secrets, etc...
# unit tests
npm run test:unit
# integration tests
npm run test:integration
Install dependencies:
npm install
Build the project:
npm start
Publish to npm
:
npm publish
FAQs
The gui-environment package is a command-line tool that simplifies managing environment variables for your application. Easily set up different configurations based on your build mode (development or production) for a smooth development workflow.
The npm package gui-environment receives a total of 0 weekly downloads. As such, gui-environment popularity was classified as not popular.
We found that gui-environment demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.