open-index/open-npm huggingface dataset:
npm package: @sirubot/melon-chart-api
Description: forked version of hyunchel/melon-chart-api with d.ts and album cover data
Author: Hyunchel Kim
Latest version: 1.1.6-fork

# Melon Chart API

[![Build Status](https://travis-ci.org/hyunchel/melon-chart-api.svg?branch=master)](https://travis-ci.org/hyunchel/melon-chart-api)

Scrapes Melon Music chart data from Melon Music website.

## Install

```bash
$ npm install --save melon-chart-api
```

## Usage

```js
const Melon = require('melon-chart-api');
Melon('04/24/2017', { cutLine: 5 }).daily().then(chartData => {
  console.log(chartData);
})
```

As of `04/24/2017`, the code above results in the following:

```
{
    "data": [
        {
            "rank": "1",
            "title": "팔레트 (Feat. G-DRAGON)",
            "artist": "아이유",
            "album": "Palette"
        },
        {
            "rank": "2",
            "title": "사랑이 잘 (With 오혁)",
            "artist": "아이유",
            "album": "사랑이 잘"
        },
        {
            "rank": "3",
            "title": "이런 엔딩",
            "artist": "아이유",
            "album": "Palette"
        },
        {
            "rank": "4",
            "title": "이 지금",
            "artist": "아이유",
            "album": "Palette"
        },
        {
            "rank": "5",
            "title": "잼잼",
            "artist": "아이유",
            "album": "Palette"
        }
    ],
    "dates": {
        "start": "20170424",
        "end": "20170424"
    }
}
```
> feat. 갓이유

## API

### Melon(date, [options])

#### date

Type: `number`, `string`, `object`

Any object that can be parsed using `date-fns/parse` function.

#### options

##### cutLine

Type: `number`

Default: `5`

##### realtime

Type: `boolean`

Default: `false`

### methods

All methods return a promise that results to Melon chart rankings in JSON.

#### Melon.realtime()

Returns realtime chart.
This method will default to the latest "realtime" chart rankings.
With `realtime` flag, the given date will be treated as "realtime", and will expect "hour" to be populated in the date.
If "hour" is not populated, it defaults to midnight(`00`).

#### Melon.daily()

Returns daily chart.
This method will ignore the given date, as Melon Music does not provide previous daily charts.
Regardless of the date, this method will always return the most recent daily chart.

#### Melon.weekly()

Returns weekly chart for the given date.
The coresponding week will be computed and fetch the correct chart accordingly.

#### Melon.monthly()

Returns monthly chart for the given date.
npm package: @sirubot/yt-related-scraper
Description: YouTube related video scraper with a ip rotation
Author: Sannoob#3144
Latest version: 0.3.21

<h1 align="center">⭐  youtube-related-scraper

[![Build Status](https://travis-ci.org/SiruBOT/youtube-related-scraper.svg?branch=master)](https://travis-ci.org/SiruBOT/youtube-related-scraper)
[![npm version](https://badge.fury.io/js/%40sirubot%2Fyt-related-scraper.svg)](https://badge.fury.io/js/%40sirubot%2Fyt-related-scraper)
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/6a8ff39161674738806a8b245923c75e)](https://www.codacy.com/gh/SiruBOT/youtube-related-scraper?utm_source=github.com&utm_medium=referral&utm_content=SiruBOT/youtube-related-scraper&utm_campaign=Badge_Grade)   
[![NPM](https://nodei.co/npm/@sirubot/yt-related-scraper.png)](https://nodei.co/npm/@sirubot/yt-related-scraper/)
</h1>


## Example Code

-   Using Promise

```js
const { Client } = require('@sirubot/yt-related-scraper')
Client.get('https://www.youtube.com/watch?v=AufydOsiD6M')
.then(results => {
    console.log(`Scraped ${results.length} related videos`)
    console.log(results)
})
.catch((e) => {
    console.log('An Error appeared')
    console.log(e.stack)
})
```

-   Using Await/Async

```js
const { Client } = require('@sirubot/yt-related-scraper')
async function getRelated (url) {
    try {
    const results = await Client.get(url)
    console.log(`Scraped ${results.length} related videos`)
    console.log(results)
    } catch (e) {
        console.log('An Error appeared')
        console.log(e.stack)
    }
}
```

-   IP Binding Support (RoutePlanner)

```js
const { Client, RoutePlanner } = require('@sirubot/yt-related-scraper')
const routePlanner = new RoutePlanner(['Your-CIDR-Range/16'], ['exclude-ip'], 1) // ipBlocks, excludedIps, failedRetry, -1 = Default Value, 0 = Infinity
async function getRelated (url) {
    try {
    const results = await Client.get(url, routePlanner)
    console.log(`Scraped ${results.length} related videos`)
    console.log(results)
    } catch (e) {
        console.log('An Error appeared')
        console.log(e.stack)
    }
}
```
npm package: @sirus/stylus
Description: Stylus input text recognition module for angular
Author: muhammad hasan
Latest version: 0.1.4

# sirus-stylus

Stylus input text recognition module for angular

![stylus demo](https://cloud.githubusercontent.com/assets/9798995/26132775/b141a7d4-3acc-11e7-8a04-1672f4bc33ea.gif)

## Installation

To install this library, run:

```bash
$ npm install @sirus/stylus --save
```

## Usage

Once you have published your library to npm, you can import this module in any Angular application by running:

```bash
$ npm install @sirus/stylus
```

and then from your Angular `AppModule` add your [myScript](http://doc.myscript.com/MyScriptCloud/3.2.0/myscript-web/text.html#mandatory-parameters) application key & hmac key:

```typescript
import { SirusStylusModule } from '@sirus/stylus';

@NgModule({
  imports: [
    SirusStylusModule.forRoot(
      'APPLICATION_KEY',
      'HMAC_KEY',
      'HOST' // default to webdemoapi.myscript.com
    )
  ]
})
export class AppModule { }
```

Then from your application template, you can start using `stylus` component

```xml
<sirus-stylus
  [pen]="pen" 
  height="200" 
  width="270" 
  language="id_ID" 
  (onResult)="writeRecognition($event)"
  (onInkChange)="inkChange($event)">
</sirus-stylus>
```

## Development

To generate all `*.js`, `*.d.ts` and `*.metadata.json` files:

```bash
$ npm run build
```

To lint all `*.ts` files:

```bash
$ npm run lint
```

## License

MIT © [muhammad hasan](mailto:hasan@lussa.net)