# varserver

> A simple way to manage Server Variables with node.js

Latest version **0.0.5** (published 2015-02-27) · GNU GPL v2 license · 0 weekly downloads

## Install

```sh
npm install varserver
pnpm add varserver
yarn add varserver
bun add varserver
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2015-02-27 |
| First published | 2015-02-27 |
| Weekly downloads | 0 |
| License | GNU GPL v2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Samir ROUABHI |
| Maintainers | rouabhi |
| Keywords | Session, Variables |

## Links

- npm: https://www.npmjs.com/package/varserver
- Repository: https://rouabhi@bitbucket.org/cloudestin/varserver
- npm.io page: https://npm.io/package/varserver

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2015-02-27

## README

# varserver #

**varServer** is a tiny ```node.js``` package that offers a very simple interface to manage *Server Variables*, that are variable accessible for all sessions and throughout requests to the server.

Server variables are stored as a global variable.

## How does it work? ##

```javascript
var varServer = require("varserver")();

// define a variable
varServer.set("appName", "mySweetApp");

// read a variable
console.log( varServer.get("appName") );

// read a variable. If does not exist, create it with a default value
var path = varServer.get("path" , "/")

// delete a variable
varServer.delete("appName");

// test if a variable is defined
console.log( varServer.isDefined("appName") ? "exists":"does not exist");
```

---
_Source: https://npm.io/package/varserver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
