# @legtech/namespace

> Provides WSLApp namespace for javascript modules

Latest version **2.0.0** (published 2022-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @legtech/namespace
pnpm add @legtech/namespace
yarn add @legtech/namespace
bun add @legtech/namespace
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-03-15 |
| First published | 2018-03-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kevinewig, matthew.edwards.legtech, frank.hoffman, bzeitner |

## Links

- npm: https://www.npmjs.com/package/@legtech/namespace
- Repository: https://dev.azure.com/waleg/Architecture/_git/NpmPackages?path=/namespace
- Homepage: https://dev.azure.com/waleg/Architecture/_wiki/wikis/Architecture.wiki/308/namespace
- npm.io page: https://npm.io/package/@legtech/namespace

## Recent versions

- 2.0.0 (latest) — 2022-03-15
- 1.0.1 — 2022-03-13
- 1.0.0 — 2018-03-07

## README

Provides WSLApp namespace for javascript modules

This is the basic pattern

```js
WSLApp.ModuleName = (function () {
    // Code goes here
})();
```

To create your own namespace within your application (though most apps just use WSLApp):

```js
// Define this globally
var MyNameSpace = WSL.EnsureNamespace('My.Namespace');

// Other modules can then use your namespace variable
MyNamespace.ModuleName = (function () {

    return {
        publicFunction: functionName,
       
    };

} ());
```

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