Skip to content

Typo in unenv npm README #509

@recanman

Description

@recanman

Describe the change

Looking at the first preset (node), the sample code is the following:

import { env, nodeless } from "unenv";

const envConfig = env(node, {});

when it should be:

import { env, node } from "unenv";

const envConfig = env(node, {});

The npm README is not equivalent to the repo's README, so I couldn't make a PR. Anyways, this is a simple fix.

URLs

https://www.npmjs.com/package/unenv?activeTab=readme

Additional information

  • Would you be willing to help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions