open-index/open-npm huggingface dataset:
npm package: @newview/webloader
Description: 1、解决多菜单打开同一路由异常问题
Author: newview
Latest version: 1.0.8

### 1.0.8
1、解决多菜单打开同一路由异常问题

### 1.0.7
添加激活事件，添加更新param

### 1.0.6
添加激活事件，添加更新param

### 1.0.5
1. 解决子系统嵌入弹窗遮罩显示问题

### 1.0.1
1. web页面加载器
npm package: @newwohh/env-safe
Description: Tiny, dependency-free utility to fail fast when required environment variables are missing or invalid.
Latest version: 0.1.0

# envsafe

Tiny, dependency-free utility that **fails fast** if required environment variables are missing or invalid.

## Install

```bash
npm i envsafe
```

## Core usage

```ts
import { envsafe } from "envsafe";

envsafe(["DATABASE_URL", "JWT_SECRET"]);

// Your app starts only if env is valid.
```

### Options

```ts
envsafe(["DATABASE_URL"], {
  disallowEmpty: true, // default
  messagePrefix: "[my-app] "
});
```

## Optional typed getters

```ts
import { envsafe, envString, envNumber, envBoolean } from "envsafe";

envsafe(["DATABASE_URL"]);

const port = envNumber("PORT", { default: 3000 });
const isProd = envBoolean("NODE_ENV", { default: false, truthy: ["production"] });
const databaseUrl = envString("DATABASE_URL");
```

## Notes

- Zero runtime dependencies
- Works with Node, Express, Next.js, serverless, etc.
- Designed to run at startup (top-level import / early initialization)
npm package: @newworldcode/talkie
Description: EventEmitter, Request/Reply messaging bus for Node.
Author: newworldcode
Latest version: 1.0.9

# Talkie

![Build status on Travis CI](https://travis-ci.org/newworldcode/talkie.svg)
[![npm version](https://badge.fury.io/js/%40newworldcode%2Ftalkie.svg)](http://badge.fury.io/js/%40newworldcode%2Ftalkie)
[![Coverage Status](https://coveralls.io/repos/newworldcode/talkie/badge.svg?branch=master&service=github)](https://coveralls.io/github/newworldcode/talkie?branch=master)

EventEmitter, Request/Reply messaging bus for Node. Allows you to extend any object, function or class with Talkie and expose a messaging bus and request/reply interface.

Talkie does not modify your original object or function, it extends it's prototype with helpful functions to make your things
become tasty messaging busses.

## Examples

Below are some common use-case examples.

#### `.request()`/`.reply()`
Create a sort-of listener that replies to requests with some data.

```js
const Talkie = require("talkie")
const test_obj = () => "buzz"

// Extend the test object.
Talkie().extend(test_obj)

// Set up `test_obj` to reply with a string.
test_obj.reply("Fizz", "Buzz")

console.log(test_obj()) // => "buzz"
console.log(test_obj.request("Fizz")) // => "Buzz"
```

#### `.new()`
Create an instance of a stored object to `.reply()` with.

```js
const Talkie = require("talkie")
const test_obj = {}

// Extend the test object.
Talkie().extend(test_obj)

// Set up `test_obj` to reply with a string.
test_obj.reply("fizz", function Fizz(){})

console.log(test_obj.new("Fizz")) // => "Fizz"
```

#### `.on(event_name, callback)`/`.off(event_name, callback)`
`on` and `off` act in the same way as the respective functions do in other common libraries, they add and remove listeners respectively.

```js
const Talkie = require("talkie")
const test_obj = () => "buzz"

// Extend the test object.
Talkie().extend(test_obj)

// Set up `test_obj` to reply with a string.
test_obj
  .on("fizz", event => {
    // Do something here.
  })
  .off("fizz", event => {
    // Do something here with the last emission of the event name.
  })
```

#### `.trigger(event_name, ...event_data)`
Trigger an event on our object.

```js
const Talkie = require("talkie")
const test_obj = () => "buzz"

// Extend the test object.
Talkie().extend(test_obj)

// Set up `test_obj` to reply with a string.
test_obj.on("fizz", event => {
  // Do something here.
})

test_obj.trigger("fizz")
```

#### `.reset()`
Remove all stored `.reply()` calls and event listeners.

```js
const Talkie = require("talkie")
const wrap_me = {}

// Extend the test object.
Talkie().extend(wrap_me)

wrap_me.reply("fizz", 1)

console.log(wrap_me.request("fizz")) // 1

wrap_me.reset()

console.log(wrap_me.request("fizz")) // undefined
```