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

znv

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

znv - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

dist/parse-core.d.ts

7

dist/index.d.ts

@@ -1,5 +0,4 @@

interface Config {
dotenv?: boolean;
}
export declare function parseEnv(specs: any, { dotenv }: Config): any;
export * as z from "zod";
export * from "./parse-env";
export * from "./parse-core";
export * from "./preprocessors";

@@ -21,14 +21,11 @@ "use strict";

};
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.z = exports.parseEnv = void 0;
// import z from "zod";
const dotenv_1 = require("dotenv");
function parseEnv(specs, { dotenv = true }) {
if (dotenv) {
(0, dotenv_1.config)();
}
return specs;
}
exports.parseEnv = parseEnv;
exports.z = void 0;
exports.z = __importStar(require("zod"));
__exportStar(require("./parse-env"), exports);
__exportStar(require("./parse-core"), exports);
__exportStar(require("./preprocessors"), exports);
//# sourceMappingURL=index.js.map
{
"name": "znv",
"version": "0.0.1",
"description": "validate env vars with zod",
"version": "0.0.2",
"description": "Parse your environment with Zod schemas",
"keywords": [
"env",
"process.env",
"zod",

@@ -31,3 +32,3 @@ "validation"

"test:eslint": "eslint --color src",
"test:jest": "echo 'fixme! then change this to jest --colors'",
"test:jest": "jest --colors",
"test:prettier": "prettier -l 'src/**/*'",

@@ -43,5 +44,6 @@ "prettier": "prettier 'src/**/*' --write",

"devDependencies": {
"@types/jest": "^27.4.0",
"@types/node": "^16.9.6",
"eslint": "^8.6.0",
"eslint-config-lostfictions": "^3.0.1",
"eslint-config-lostfictions": "^3.1.0",
"jest": "^27.4.7",

@@ -48,0 +50,0 @@ "npm-run-all": "^4.1.5",

# znv
(Don't use this yet!)
<a href="https://www.npmjs.com/package/znv">
<img src="https://img.shields.io/npm/v/znv.svg?logo=npm" alt="NPM version" />
</a>
```bash
npm i znv
# or
yarn add znv
```
Parse your environment (and optionally [`.env`
file](https://github.com/motdotla/dotenv)) with
[Zod](https://github.com/colinhacks/zod).
Tastes great with the
[eslint-plugin-node](https://github.com/mysticatea/eslint-plugin-node) rule
[`no-process-env`](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-process-env.md).

Sorry, the diff of this file is not supported yet

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