@nuxt/un

1,591 772
Install
npm install @nuxt/un
Latest Version:0.1.1
License:MIT
Last Updated:Oct 24, 2026
Links: GitHub  ·  npm

un

un

Once upon a time, one server was all needed to have a website

And then SPAs1 moved server code to browser

And then SSR2 moved browser code to server

And then Workers3 moved browser/server code to workers

Workers are neither NodeJS with process or Browser with window

Yet expected to run code that had to work both of them :}

[1] Single Page Applications [2] Server Side Rendering [3] https://workers.cloudflare.com

What is un?

un is a collection of modules, polyfills and presets that work perfectly with any Javascript environemnt including Browsers, Workers, NodeJS or pure JavaScript.

You still need a bundler like rollup.js and un will disapear as soon as is bundled.

The goal is that final bundle works consistent regardless of running context yet not adding excessive polyfills.

Install

Install un as devDependency:

yarn add --dev @nuxt/un
# or
npm i -D @nuxt/un

You can import modules from @nuxt/un/runtime/

Env

import { env, nodeless } from '@nuxt/un'

const { alias, inject } = env(nodeless, {
  alias: {
    // custom aliases
  }
})

Presets

polyfills

NodeJS

http

net

stream

Mocks

Packages

License

MIT

Related Packages

@nuxt/kit

Toolkit for authoring modules and interacting with Nuxt

258,907,175 61,001
@nuxt/opencollective
237,422,955 29
@nuxt/devtools-kit
108,156,300 3,309
@nuxt/devtools

The Nuxt DevTools gives you insights and transparency about your Nuxt App.

70,062,939 3,309
@nuxt/eslint-config

ESLint config for Nuxt projects

32,408,941 640

Version History

Version Released License
0.1.1 MIT
0.1.0 MIT
0.0.12 MIT
0.0.11 MIT
0.0.10 MIT