# namespace-polyfill

> > Use tomorrow's namespaces today!

Latest version **1.0.0** (published 2018-12-14) · Apache-2.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install namespace-polyfill
pnpm add namespace-polyfill
yarn add namespace-polyfill
bun add namespace-polyfill
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-12-14 |
| First published | 2018-12-14 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Myles Borins |
| Maintainers | mylesborins |

## Links

- npm: https://www.npmjs.com/package/namespace-polyfill
- npm.io page: https://npm.io/package/namespace-polyfill

## Dependencies (1)

- [mock-require](https://npm.io/package/mock-require.md) ^3.0.2

## Recent versions

- 1.0.0 (latest) — 2018-12-14

## README

# NameSpace Polyfill
> Use tomorrow's namespaces today!

## What is this?

We are currently [discussing making a namespace in Node.js](https://github.com/nodejs/node/pull/21551).

There is a debate regarding the best mechanism to do so. Currently there are two major approaches:

* using a url like scheme such as `nodejs:${builtin}`
* using a scope such as `@nodejs/${builtin}`

One of the critiques against the url like scheme is that it would not be easy to polyfill. This project
serves as a proof of concept that we will be able to polyfill any approach to namespaces, making polyfilling
a non-issue for reaching consesnsus in Node.js core.

## Installing

npm install --save namespace-polyfill

## Using

node -r namespace-polyfill [your-entry-point.js]

## Now what?

You can start using the `nodejs:` namespace

```js
const fs = require('nodejs:fs');
```

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