open-index/open-npm huggingface dataset:
npm package: @mdxvac/deep-merge
Description: Simple algorithm to merge configuration objects with arbitrary depths
Author: christian@hackyourshack.org
Latest version: 0.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/deep-merge

> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the `@mdxvac` plugins in one plugin (completely opt-in).

Simple algorithm to merge configuration objects with arbitrary depths.

## Content

- [Content](#content)
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)

## What is this?

This package is a simple algorithm, that allows to merge configuration objects with arbitrary depths.

## When should I use this?

If you have configuration objects with a defined precedence order, you can merge them with this algorithm (the last one merged takes the highest precedence).

The algorithm will create new objects for merged objects, so the input objects are never changed. In the merged object, simple values are overwritten by later source values, object values will be merged.

> Note: Date and Array are **NOT** considered objects and will be overwritten instead of merged.

You must pass at least two objects.

> I use it e.g. in a Static Site Generator to merge configuration files with default values specified on directory level.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/deep-merge
```

## Use

```js
const a = {
  address: {
    city: 'Berlin',
  },
  self: 'Icke',
};
const b = {
  familyName: 'Poor',
  address: {
    street: 'Unter den Linden',
  },
  rich: false,
  vehicles: ['bicycle'],
};
const c = {
  firstName: 'Joe',
  address: {
    number: '100',
  },
  self: 'Me',
  rich: true,
  vehicles: ['sports car', 'private jet', 'e-bike'],
};
deepMerge(a, b, c);
```

Will result in the following merged object:

```js
{
  firstName: 'Joe',
  familyName: 'Poor',
  address: {
    number: '100',
    street: 'Unter den Linden',
    city: 'Berlin',
  },
  self: 'Me',
  rich: true,
  vehicles: ['sports car', 'private jet', 'e-bike'],
}
```
npm package: @mdxvac/esm-utils
Description: Utilities to work with ESM files
Author: christian@hackyourshack.org
Latest version: 0.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/esm-utils

> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the `@mdxvac` plugins in one plugin (completely opt-in).

Utilities to work with ESM (JavaScript) files.

## Content

- [Content](#content)
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)

## What is this?

This is an NPM package providing some utilities to work with (parsed) JavaScript files.

## When should I use this?

You shouldn't, it is meant for internal use in the @mdxvac plugins, but not tested for general purpose.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/esm-utils
```

## Use

```js
import { parseEsm } from '@mdxvac/esm-utils';

const root = parseEsm(`
export function foo() {
  console.log("foo");
}
`);
```
npm package: @mdxvac/fs-utils
Description: Caching file system access
Author: christian@hackyourshack.org
Latest version: 0.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/fs-utils

> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the `@mdxvac` plugins in one plugin (completely opt-in).

Some utilities to work with the file system, e.g. to find files in parent folders.

## Content

- [Content](#content)
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)

## What is this?

An NPM package with a few utilities to work with configuration files in the file system. It also provides a cached variant, if you work in a static context, e.g. with a Static Site Generator (SSG).

## When should I use this?

You shouldn't, it is meant for internal use in the @mdxvac plugins, but not tested for general purpose.

If you work with configuration files placed in the file system relative to your subject file, you usually want to find the closest or all files looking up the directory tree. Then you can use the functions `findUp` (finding the closest) and `findUpAll` (finding all, up to a stop directory).

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/fs-utils
```

## Use

Example usages:

```js
const file = "src/pages/docs/install/my-content.mdx";

if (await exists(file)) {
  const howToRender = await findUp("how-to-render.json", file);

  const yaml = await findUpAll("_frontmatter.yaml", file);
  const frontmatter = deepMerge(yaml.map(c => loadYAML(c)));

  ...
}
```
npm package: @mdxvac/mdx-utils
Description: Utilities to work with MDX files
Author: christian@hackyourshack.org
Latest version: 0.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/mdx-utils

> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the `@mdxvac` plugins in one plugin (completely opt-in).

Type guards for remark.

## Content

- [Content](#content)
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)

## What is this?

This is an NPM package providing type guards for remark types.

## When should I use this?

You shouldn't, it is meant for internal use in the @mdxvac plugins, but not tested for general purpose.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/mdx-utils
```

## Use

```js
import { isHeading } from '@mdxvac/mdx-utils';

if (isHeading(node)) {
  // This is type-safe now
  if (node.depth > 2) {
    ...
  }
}
```
npm package: @mdxvac/mem-cache
Description: Typed memory cache for stateless functions
Author: christian@hackyourshack.org
Latest version: 0.0.4
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/mem-cache

> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the `@mdxvac` plugins in one plugin (completely opt-in).

Simple typed in-memory cache for stateless functions.

## Content

- [Content](#content)
- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)

## What is this?

This package is a simple TypeScript class, that allows to wrap a stateless function in a cache.

## When should I use this?

If you have a computation-intensive or I/O-heavy (quasi) stateless function, that will return the same value for each invocation with the same parameters, then you can wrap it into this cache and use cached values for repeated calls.

> I use it e.g. in a Static Site Generator to access values from configuration files.

## Install

```sh
npm install -D @mdxvac/mem-cache
```

## Use

```js
function expensiveComputation(a: string, b: number) {
  return `${a} - ${b}`;
}
const cachedComputation = new MemCache(expensiveComputation);

const result = cachedComputation.get('a', 8);
```

Of course, you can also use arrow functions to initialize the cache:

```js
const cachedComputation = new MemCache((a: string, b: number): string => {
  return `${a} - ${b}`;
});
```
npm package: @mdxvac/remark-astro-rawmdx
Description: Remark plugin to add the raw MDX content to the frontmatter's 'mdx' property
Author: christian@hackyourshack.org
Latest version: 0.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/remark-astro-rawmdx

remark plugin to add the raw markdown content to the frontmatter of your Astro MDX files (property `rawmdx`).

[MDX Vacuum](https://mdxvac.netlify.app) is a set of plugins allowing you to define an [Astro](https://astro.build) 🚀 publishing pipeline for Markdown/MDX documents with full [MDX](https://mdxjs.com) features, but without the technical fuss, i.e. you and your non-tech editors can write **clean** markdown.

Have a look at the other [`mdxvac` plugins](https://www.npmjs.com/org/mdxvac).

## Content

- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
  - [Options](#options)

## What is this?

This package is a [`remark`](https://github.com/remarkjs/remark/blob/main/doc/plugins.md) plugin to add the raw markdown content to the frontmatter of your MDX files in the context of [Astro](https://docs.astro.build/en/guides/integrations-guide/mdx/#remarkplugins) site generation.

## When should I use this?

Astro MDX files do not carry the raw MDX content anymore, once you import them. With this plugin you can access the raw content in the frontmatter `mdx` property.

Use this plugin, if you want to have access to the raw MDX content while generating your Astro pages.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/remark-astro-rawmdx
```

## Use

In your `astro.config.mjs`

```js
import { defineConfig } from 'astro/config';

import mdx from '@astrojs/mdx';
import rawMdx from '@mdxvac/remark-astro-rawmdx';
//                  ^^^

// https://astro.build/config
export default defineConfig({
  integrations: [mdx()],
  markdown: {
    remarkPlugins: [rawMdx],
    //              ^^^
    extendDefaultPlugins: true,
  },
});
```

This uses the default options, where the name of the property on the frontmatter is `rawmdx`.

### Options

If you want to use a different name for the property, you can specify it in the plugin's `property` option like so:

```js
remarkPlugins: [[rawMdx, {property: "raw"}]],
```
npm package: @mdxvac/remark-utils
Description: Type guards for remark
Author: christian@hackyourshack.org
Latest version: 0.0.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/remark-utils

Type guards for remark.

## Content

- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)

## What is this?

This is an NPM package providing type guards for remark types.

## When should I use this?

If you want to check unknown remark nodes for their type and use them in a type-safe manner.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/remark-utils
```

## Use

```js
import { isHeading } from '@mdxvac/remark-utils';

if (isHeading(node)) {
  // This is type-safe now
  if (node.depth > 2) {
    ...
  }
}
```
npm package: @mdxvac/vfile-astro
Description: Astro-enhanced Unified VFile
Author: christian@hackyourshack.org
Latest version: 0.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/vfile-astro

Astro-enhanced VFile type, typing the `astro.frontmatter` property.

## Content

- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
  - [Options](#options)

## What is this?

This package just declares an ambient module `vfile-astro`.

## When should I use this?

If you are working with Unified/Vite/Markdown files that have been preprocessed by Astro and contain frontmatter, then this declaration will give you a typed experience.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/vfile-astro
```

## Use

```js
import type { VFile } from 'vfile-astro';

...
  file.data.astro.frontmatter[property] = value;
```
npm package: @mdxvac/vite-astro-mdxcomponents
Description: Vite plugin to add automatic component mapping to MDX files
Author: christian@hackyourshack.org
Latest version: 0.0.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# @mdxvac/vite-astro-mdxcomponents

Vite plugin to define common component mappings for all Astro markdown files in a directory.

## Content

- [What is this?](#what-is-this)
- [When should I use this?](#when-should-i-use-this)
- [Install](#install)
- [Use](#use)
  - [Options](#options)

## What is this?

This package is a [`Vite`](https://vitejs.dev/guide/api-plugin.html) plugin in the context of [Astro](https://docs.astro.build/en/guides/integrations-guide/mdx) site generation.

## When should I use this?

In Astro you can define a mapping from HTML elements to JSX components by exporting `const components = { ... }` in any MDX file. With this plugin you can define this export per directory.

## Install

This package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
In Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:

```sh
npm install -D @mdxvac/vite-astro-mdxcomponents
```

## Use

In your `astro.config.mjs`

```js
import { defineConfig } from 'astro/config';

import mdx from '@astrojs/mdx';
import mdxComponents from '@mdxvac/vite-astro-mdxcomponents';
//                         ^^^

// https://astro.build/config
export default defineConfig({
  integrations: [mdx()],
  markdown: {
    remarkPlugins: [],
    extendDefaultPlugins: true,
  },
  vite: {
    plugins: [mdxComponents()],
    //        ^^^
  },
});
```

This uses the default options, where the name of the mapping file is `_components.ts`.

Now create a TypeScript/JavaScript file, that exports a `components` object mapping HTML elements to arbitrary Astro, React, ... components.

```js
import { Title } from '@components/Title';

export const components = {
  h1: Title,
};
```

### Options

If you want to use a different name for the mapping file, you can specify it in the plugin's `name` option like so:

```js
plugins: [mdxComponents({name: "_mapping.ts"})],
```
npm package: @mdzfinance/sdk
Description: 🛠 An SDK for building applications on top of pancakeswap.
Latest version: 1.0.1

# mdzswap SDK


## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/MdzFinance/mdzswap-sdk.git
```

Move into the mdzswap-sdk working directory

```sh
cd mdzswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @mdzzohrabi/container
Description: Dependency Injection Container
Author: Masoud Zohrabi
Latest version: 1.0.1

# Container

## Usage

Simple usage :
```ts
let container = new Container
container.setParams({
    dbName: 'myDB'
})

container.set('connection', ($dbName) => {
    return $dbName;
})

container.get('connection'); // return "myDb"
```
Advanced :
```ts
let container = new Container({
    // Log service
    log: ($env) => {
        if ($env === 'dev') return (...params) => console.log(...params);
        return () => void;
    },
    // Database connection
    db: function dbConnection(log, $dbHost) {
        log(`Initialize connection`)
    }
}, { env: 'dev', dbHost: 'localhost' })
```
npm package: @me-hotel/ibuild
Description: build tool for iseeu framework
Author: DSG
Latest version: 1.0.0

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [ibuild](#ibuild)
  - [todo list](#todo-list)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# ibuild

build tool for ui framework

## todo list

1. sdk/lib build mode
2. webpack build mode
3. source code compile
4. input param detect , help console output
5. src option, out option, mode option(h5), beta option
npm package: @me-hotel/iseeu
Description: i c u...
Author: DSG
Latest version: 0.0.1

# iseeu
iseeu ui framework kit

#### usage
1. mobile ui
2. react component
3. need lodash-es installed
4. build without react && lodash-es code
5. bundle just contain pure component code
6. need scss lodaer support && node_modules scss resolve support
7. support tree-shaking
8. need esm import
npm package: @me-hotel/xprice
Description: h5 price react component
Author: DSG
Latest version: 1.0.5

# XPrice
H5价格组件
````安装
npm i xprice
````
#### 使用方式
````
1. 本插件仅支持esm引入方式, 非UMD
2. 为了减少打包后体积, 不打包依赖, 只做编译
3. 使用本组件依赖react@16, lodash-es
// 调用代码
import xprice from 'xprice'
````
#### 基于reactJS的组件
````
1. 组件开箱即用, 无需编译, 有reactJS环境就能用
2. 解决了transform之后文字抖动的问题
3. 解决了baseline对齐兼容transform的问题
4. 替代canvas兼容reactJS在类似tab组件中解决实例缓存问题
5. 能解决大部分价格组件使用场景
6. 基于rem布局计算, 传入参数无需换算, 按照2X设计图直接传px像素
````
#### 强兼容性
````
1. 安卓最低4.4 机型覆盖主流机型
2. ios最低8.0 覆盖iphone5等小屏幕机型
````