open-index/open-npm huggingface dataset:
npm package: @splayer/ass-compiler
Description: Parses and compiles ASS subtitle format to easy-to-use data structure with stream support.
Author: Zhenye Wei
Latest version: 0.0.11-dev.1

# ass-compiler

[![Build status](https://badgen.net/travis/weizhenye/ass-compiler?icon=travis&label=build)](https://travis-ci.org/weizhenye/ass-compiler)
[![Coverage](https://badgen.net/codecov/c/github/weizhenye/ass-compiler?icon=codecov)](https://codecov.io/gh/weizhenye/ass-compiler)
[![Dependencies](https://badgen.net/david/dep/weizhenye/ass-compiler?icon=https://api.iconify.design/si-glyph:connect-2.svg?color=white)](https://david-dm.org/weizhenye/ass-compiler)
[![NPM version](https://badgen.net/npm/v/ass-compiler?icon=npm)](https://www.npmjs.com/package/ass-compiler)
[![License](https://badgen.net/npm/license/ass-compiler?icon=https://api.iconify.design/octicon:law.svg?color=white)](https://github.com/weizhenye/ass-compiler/blob/master/LICENSE)
[![File size](https://badgen.net/bundlephobia/minzip/ass-compiler?icon=https://api.iconify.design/ant-design:file-zip-outline.svg?color=white)](https://bundlephobia.com/result?p=ass-compiler)
[![jsDelivr](https://badgen.net/jsdelivr/hits/npm/ass-compiler?icon=https://api.iconify.design/simple-icons:jsdelivr.svg?color=white)](https://www.jsdelivr.com/package/npm/ass-compiler)

Parses and compiles ASS subtitle format to easy-to-use data structure.

[Online Viewer](https://ass.js.org/ass-compiler/)

## Installation

```bash
npm install ass-compiler
```

## Usage

```js
import { parse, compile } from 'ass-compiler';
parse(text);
compile(text, options);
```

### options

```js
{
  // A Style named `Default` will be automatic generated by options.defaultStyle
  // if it is not exists in `[V4+ Style]` section.
  defaultStyle: {
    Name: 'Default',
    Fontname: 'Arial',
    Fontsize: '20',
    PrimaryColour: '&H00FFFFFF&',
    SecondaryColour: '&H000000FF&',
    OutlineColour: '&H00000000&',
    BackColour: '&H00000000&',
    Bold: '0',
    Italic: '0',
    Underline: '0',
    StrikeOut: '0',
    ScaleX: '100',
    ScaleY: '100',
    Spacing: '0',
    Angle: '0',
    BorderStyle: '1',
    Outline: '2',
    Shadow: '2',
    Alignment: '2',
    MarginL: '10',
    MarginR: '10',
    MarginV: '10',
    Encoding: '1',
  },
}
```

For details of data structure, please use the [online viewer](https://ass.js.org/ass-compiler/).
npm package: @splayer/osx-mouse-cocoa
Description: Mouse tracking for macOS using Cocoa APIs
Latest version: 1.0.2

# osx-mouse-cocoa

Mouse tracking for macOS. Receive the screen position of various mouse events.

    npm install osx-mouse-cocoa

This is a fork of [osx-mouse](https://github.com/kapetan/osx-mouse) that works on macOS Mojave without accessibility permissions. Unlike `osx-mouse`, the events are only emitted when the application is in focused. Even when the application is unfocused, `move` events are still generated when hovering over the application windows.

# Usage

The module returns an event emitter instance.

```javascript
var mouse = require('osx-mouse-cocoa')();

mouse.on('move', function(x, y) {
	console.log(x, y);
});
```

To stop tracking events, call `mouse.destroy()`. The `mouse.ref()` and `mouse.unref()` methods have been retained for API compatibility with `osx-mouse`, but they have no effect.

The events emitted are: `move`, `left-down`, `left-up`, `left-drag`, `right-up`, `right-down` and `right-drag`. For each event the screen coordinates are passed to the handler function.