open-index/open-npm huggingface dataset:
npm package: @odinlin/astro-preview
Description: Forked from [astro-live-code](https://github.com/mattjennings/astro-live-code) by [Matt Jennings](https://github.com/mattjennings).
Latest version: 0.0.2

# Astro Preview

Forked from [astro-live-code](https://github.com/mattjennings/astro-live-code) by [Matt Jennings](https://github.com/mattjennings).

## Install

[![npm](https://img.shields.io/npm/v/@odinlin/astro-preview?color=blue&label=npm)](https://www.npmjs.com/package/@odinlin/astro-preview)

```bash
npm install @odinlin/astro-preview
```

```js {2,7} title="astro.config.mjs"
import { defineConfig } from 'astro/config'
import preview from '@odinlin/astro-preview'

export default defineConfig({
  integrations: [
    // ... other integrations
    preview({
      // layout: './src/MyLayout.astro',
    }),
  ],
})
```

## Useage

```html
<!-- React case -->
<code client:only="react" src="src/components/ReactDemo.tsx" propA="a" style={{ width:'80%' }}>
  <span>子节点</span>
</code>

<!-- Vue case -->
<code client:only="vue" src="src/components/VueDemo.vue" propA="a" style="width: 80%">
  <span>子节点</span>
</code>
```
npm package: @odinlin/formily-antd
Description: > Formily Component Adaptor - [antd](https://github.com/ant-design/ant-design)
Latest version: 0.0.3

# @odinlin/formily-antd

> Formily Component Adaptor - [antd](https://github.com/ant-design/ant-design)

## Installation

```bash
npm install --save antd dayjs
npm install --save @formily/core @formily/react @formily/antd-v5
npm install --save @odinlin/formily-antd
```
npm package: @odinlin/utils
Description: utils
Author: odinlin
Latest version: 1.0.3

### Usage

```ts
import type { TypePrimitive as TypePrimitive1 } from '@odinlin/utils'
import { isNull as isNull1 } from '@odinlin/utils'

// eslint-disable-next-line perfectionist/sort-imports
import type { TypePrimitive as TypePrimitive2 } from '@odinlin/utils/internal/is/index'
import { isNull as isNull2 } from '@odinlin/utils/internal/is/index'
// eslint-disable-next-line perfectionist/sort-imports
import type { TypePrimitive as TypePrimitive3 } from '@odinlin/utils/internal/is/isPrimitive'
import { isNull as isNull3 } from '@odinlin/utils/internal/is/isPrimitive'

import { version as v1 } from '@odinlin/utils/version.js'
// eslint-disable-next-line perfectionist/sort-imports
import { version as v2 } from '@odinlin/utils/package.json' assert { type: 'json' }
```
npm package: @odinswap/sdk
Description: 🛠 An SDK for building applications on top of odinswap.
Latest version: 1.0.4

# odinswap SDK

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![Actions Status](https://github.com/odinswap/odinswap-sdk/workflows/CI/badge.svg)](https://github.com/odinswap/odinswap-sdk)
[![npm version](https://img.shields.io/npm/v/@odinswap/sdk/latest.svg)](https://www.npmjs.com/package/@odinswap/sdk/v/latest)
[![npm bundle size (scoped version)](https://img.shields.io/bundlephobia/minzip/@odinswap/sdk/latest.svg)](https://bundlephobia.com/result?p=@odinswap/sdk@latest)

In-depth documentation on this SDK is available at [odinswap.org](https://odinswap.org/docs/v2/SDK/getting-started/).

## 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/odinswap/odinswap-sdk.git
```

Move into the odinswap-sdk working directory

```sh
cd odinswap-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.
```