open-index/open-npm huggingface dataset:
npm package: 123yun-share
Description: Utility to parse 123yun-share links
Author: Nanahira
Latest version: 1.0.0

# 123yun-share

Utility for create and parse 123yun shares

## Usage

```ts
import {OneTwoThreeShare} from "./ott";

const ott = new OneTwoThreeShare({ // all optional
  redis: { uri: 'redis://localhost:6379' } // Redis if needed
  credentials: { // needed if creating share
    username: '',
    password: '',
  }
  httpOptions: { // options for axios
    timeout: 30000,
    headers: {
      'User-Agent': '123yun-share',
    },
  }
});

const link = await ott.parse('https://www.123pan.com/s/wY88Vv-oTbsd', {
  password: '' // share password
  clientIp: '1.1.1.1' // if requesting for another client
});

```