open-index/open-npm huggingface dataset:
npm package: @minodisk/medic
Description: A CLI retrives the post metadata and body from the markdown file, transforms the body to HTML with @minodisk/medmd, then create and update posts in Medium with @minodisk/medkit.
Author: Daisuke Mino
Latest version: 0.8.0

# @minodisk/medic [![npm version](https://img.shields.io/npm/v/@minodisk/medic.svg?style=flat-square)](https://www.npmjs.com/package/@minodisk/medic)

A CLI retrives the post metadata and body from the markdown file, transforms the body to HTML with [@minodisk/medmd](https://github.com/minodisk/medic/tree/master/packages/medic), then create and update posts in [Medium](https://medium.com/) with [@minodisk/medkit](https://github.com/minodisk/medic/tree/master/packages/medkit).

## Installation

```sh
$ npm install -g @minodisk/medic
```

## Usage

```sh
$ medic --help

  Usage: medic [options] [command]


  Options:

    -V, --version              output the version number
    -d, --debug                not to use headless Chromium
    -c, --cookies-path <path>  cookies file path (default: cookies.json)
    -h, --help                 output usage information


  Commands:

    sync <patterns...>  creates or updates posts
```

### Sync posts to Medium

```sh
$ medic sync --help

  Usage: sync [options] <patterns...>

  creates or updates posts


  Options:

    -h, --help  output usage information


  Examples:

    medic sync articles/example.md
    medic sync articles/*.md
    medic sync $(git diff --name-only)
```

## Supported functions

* Write
  * [x] [Write post](https://help.medium.com/hc/en-us/articles/225168768-Write-post)
  * [x] [Edit post](https://help.medium.com/hc/en-us/articles/215194537-Edit-post)
  * [ ] [Delete draft](https://help.medium.com/hc/en-us/articles/215591007-Delete-draft)
  * [ ] [Delete post](https://help.medium.com/hc/en-us/articles/214896058-Delete-post)
  * [ ] [Schedule to publish](https://help.medium.com/hc/en-us/articles/216650227-Schedule-to-publish)
  * [ ] [Unpublish post](https://help.medium.com/hc/en-us/articles/227056408-How-do-I-unpublish-a-post-)
  * [x] [Tags](https://help.medium.com/hc/en-us/articles/214741038-Tags)
* Images
  * [x] [Image captions](https://help.medium.com/hc/en-us/articles/115004808787-Image-captions)
  * [x] [Image grids](https://help.medium.com/hc/en-us/articles/115004808587-Image-grids)
* Embeds
  * [x] Medium Posts
  * [x] GitHub Gists
  * [x] [Embed Tweets](https://help.medium.com/hc/en-us/articles/216196547-Embed-Tweets)
npm package: @minodisk/medkit
Description: A SDK for post creation and update by emulating operation on Medium's post edit screen with Headless Chromium via puppetter.
Author: Daisuke Mino
Latest version: 0.8.0

# @minodisk/medkit [![npm version](https://img.shields.io/npm/v/@minodisk/medkit.svg?style=flat-square)](https://www.npmjs.com/package/@minodisk/medkit)

A SDK for post creation and update by emulating operation on [Medium](https://medium.com/)'s post edit screen with Headless Chromium via [puppetter](https://github.com/GoogleChrome/puppeteer).

## Installation

npm:

```sh
npm install --save @minodisk/medkit
```

yarn:

```sh
yarn add @minodisk/medkit
```

## Usage

```js
import Client from "@minodisk/medkit";

(async () => {
  const client = new Client();
  const postId = await client.createPost(
    "<h3>Title</h3><h4>Subtitle</h4><p>Text</p>",
  );
  const html = await client.readPost(postId); // ->  "<h1>Title</h1><h2>Subtitle</h2><p>Text</p>" or "<h3>Title</h3><h4>Subtitle</h4><p>Text</p>"
  await client.updatePost(
    postId,
    "<h3>Title</h3><h4>Subtitle</h4><p>Modified</p>",
  );
  await client.destroyPost(postId);
  await client.close();
})();
```

## API

### `new Client(options?: {cookiesPath?: string}): Client`

`new Client()` returns `Client`. `cookiesPath` in `options` is `"cookies.json"`
in default.

#### `Client.prototype.createPost(html: string): Promise<string>`

`createPost` opens Medium's new story screen and pastes the passed `html` in the post field. When saving the post is completed, returned `Promise` will pass the post ID to the next step and complete.

#### `Client.prototype.readPost(postId: string): Promise<string>`

`readPost` opens Medium's edit screen with post ID `postId` and gets the HTML in post filed. When getting the post HTML is completed, returned `Promise` will pass that HTML to the next step and complete.

#### `Client.prototype.updatePost(postId: string, html: string): Promise<void>`

`updatePost` opens Medium's edit story screen with post ID `postId` and pastes the passed `html` in the post field. When saving the post is completed, returned `Promise` will complete.

#### `Client.prototype.destroyPost(postId: string): Promise<void>`

`destroyPost` opens Medium's edit story screen with post ID`postId` and clicks delete button. When deleting the post is completed, returned `Promise` will complete.

#### `Client.prototype.close(): Promise<void>`

`close` closes Chromium. When closing Chromium is completed, returned `Promise` will complete.
npm package: @minodisk/medmd
Description: A library for transforming markdown into HTML for Medium.
Author: Daisuke Mino
Latest version: 0.8.0

# @minodisk/medmd [![npm version](https://img.shields.io/npm/v/@minodisk/medmd.svg?style=flat-square)](https://www.npmjs.com/package/@minodisk/medmd)

A library for transforming markdown into HTML for [Medium](https://medium.com/).

## API

### `md2html(md: string): Promise<string>`

`md2html` transform `md` to HTML.

## Supported

* Block Elements
  * [x] Paragraphs and Line Breaks
  * [x] Headers
  * [x] Horizontal Rules
  * [x] Blockquotes
  * [x] Lists
  * [x] Code Block
* Inline
  * [x] Links
  * [x] Emphasis
  * [x] Code
  * [x] Images
npm package: @minofrk/msf-io-ts
Description: Type utilities with io-ts for MSF format.
Author: 古城みの
Latest version: 0.2.0

@minofrk/msf-io-ts
===============================================================================

[![NPM Version](https://img.shields.io/npm/v/@minofrk/msf-io-ts.svg?style=flat-square)](https://www.npmjs.com/package/@minofrk/msf-io-ts)
[![License](https://img.shields.io/github/license/minofrk/msf-io-ts.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/travis/com/minofrk/msf-io-ts/master.svg?style=flat-square)](https://travis-ci.com/minofrk/msf-io-ts)
[![codecov](https://img.shields.io/codecov/c/github/minofrk/msf-io-ts.svg?style=flat-square)](https://codecov.io/gh/minofrk/msf-io-ts)

[MSF 形式](https://github.com/minofrk/mino-seslax-format)を TypeScript で取り扱う上で有用そうな型を [io-ts](https://github.com/gcanti/io-ts) のコーデックとして用意しています。

```typescript
import { Move } from '@minofrk/msf-io-ts';

// ...

const something = JSON.parse(json);

if (!Move.is(something)) {
    throw new TypeError();
}

const move: Move = something;
```

その他、有用そうな型エイリアスと関数も用意されています（下記参照）

Install
-------------------------------------------------------------------------------

```
npm install @minofrk/msf-io-ts
```

加えて [io-ts](https://github.com/gcanti/io-ts) と [fp-ts](https://github.com/gcanti/fp-ts) もインストールします（既にあれば不要です）

```
npm install io-ts fp-ts
```

Codecs
-------------------------------------------------------------------------------

### 局面、指し手、棋譜

- `State`
- `Move`
    - `LeimMove`
    - `OkkeMove`
    - `KorMove`
    - `EvMove`
    - `SedMove`
- `MSFType`

### 駒

- `Arxe`
- `Sorn`
- `Piece`
- `Teems`
- `TurnablePiece`

### その他

- `FalaType` ... 0 以上 2147483647 以下の整数
- `DateTimeString` ... RFC 3339 に準拠した文字列
- `Player`
- `Coordinate` ... 0 以上 6 以下の整数
- `Position`
- `FromTo`

Type aliases
-------------------------------------------------------------------------------

上述したコーデックはそのまま型エイリアスとしても使用できます。

加えて以下の型が用意されています。

- `ReadonlyState`
- `ReadonlyMove`
    - `ReadonlyLeimMove`
    - `ReadonlyOkkeMove`
    - `ReadonlyKorMove`
    - `ReadonlyEvMove`
    - `ReadonlySedMove`
- `ReadonlyMSFType`
- `ReadonlyPosition`
- `ReadonlyFromTo`

Strict validators
-------------------------------------------------------------------------------

仕様への準拠を完全に検査するための関数です。指し手の検査は `Move.is()` で既に完全なので `isSpecCompliantMove()` はありません。

- `isSpecCompliantState()`
- `isSpecCompliantMSFType()`

License
-------------------------------------------------------------------------------

See [LICENSE](LICENSE)
npm package: @minofrk/msf-pretty-print
Description: An opinionated pretty-printer for MSF format.
Author: 古城みの
Latest version: 0.0.2

@minofrk/msf-pretty-print
===============================================================================

[![NPM Version](https://img.shields.io/npm/v/@minofrk/msf-pretty-print.svg?style=flat-square)](https://www.npmjs.com/package/@minofrk/msf-pretty-print)
[![Build Status](https://img.shields.io/travis/com/minofrk/msf-pretty-print.js/master.svg?style=flat-square)](https://travis-ci.com/minofrk/msf-pretty-print.js)
[![License](https://img.shields.io/github/license/minofrk/msf-pretty-print.js.svg?style=flat-square)](LICENSE)
[![codecov](https://img.shields.io/codecov/c/github/minofrk/msf-pretty-print.js.svg?style=flat-square)](https://codecov.io/gh/minofrk/msf-pretty-print.js)

[MSF 形式](https://github.com/minofrk/mino-seslax-format)の pretty-print をするライブラリです。

```typescript
msfPrettyPrint(state);
/*
{
  "sast": "sorn",
  "arxe": {
    "txifol": ["lin", "len", "mat", "rez", "pin", "ket"],
    "evol": null
  },
  "sorn": {
    "txifol": ["vio", "fav", "mik", "lis", "mel"],
    "evol": null
  },
  "ele": [
    [ null,  null,  null,  null,  null,  null,  null],
    ["rav",  null,  null, "mir",  null, "jil", "tan"],
    [ null,  null,  null,  null, "tem",  null, "nen"],
    ["din", "dia",  null,  null,  null,  null,  null],
    [ null,  null,  null, "zan", "gil",  null,  null],
    ["pal",  null, "ful",  null,  null,  null, "ruj"],
    [ null, "dyu",  null, "ser",  null,  null, "ral"]
  ],
  "korol": ["ruj"]
}
*/
```

Install
-------------------------------------------------------------------------------

    npm install @minofrk/msf-pretty-print

Usage
-------------------------------------------------------------------------------

```typescript
import msfPrettyPrint from '@minofrk/msf-pretty-print';

msfPrettyPrint(/* State | Move | MSFType */);
```

License
-------------------------------------------------------------------------------

See [LICENSE](LICENSE)
npm package: @minofrk/palt
Description: Convert between calendars in Kaldia and gregorian calendar.
Author: 古城みの
Latest version: 0.0.1

@minofrk/palt
===============================================================================

[![NPM Version](https://img.shields.io/npm/v/@minofrk/palt.svg?style=flat-square)](https://www.npmjs.com/package/@minofrk/palt)
[![Build Status](https://img.shields.io/travis/com/minofrk/palt-js/master.svg?style=flat-square)](https://travis-ci.com/minofrk/palt-js)
[![License](https://img.shields.io/github/license/minofrk/palt-js.svg?style=flat-square)](LICENSE)

グレゴリオ暦（年/月/日）と以下の暦との間で相互変換を行うライブラリです。

- [紫亞数](http://conlinguistics.org/arka/data_palt_2.html)
- [メル暦](http://conlinguistics.org/arka/data_palt_1.html)
- [イムル暦](http://mindsc.ape.jp/klel/yui.cgi?rein=imulpalt&ziko=ilm&axn=axnyui&ism=ismyui)

現状整数値以外の取り扱いに対応していません（エラーになります）。

Install
-------------------------------------------------------------------------------

ECMAScript 5 の環境では `Number.isSafeInteger` の Polyfill が必要です。

    npm install --save @minofrk/palt

### Browser (UMD)

[Releases](https://github.com/minofrk/palt-js/releases) にあるタグを貼り付けるか、ダウンロードしたファイルを何らかの方法で読み込むことで利用できます。ブラウザの場合はグローバル変数の `paltjs` 以下にライブラリが展開されます。

API
-------------------------------------------------------------------------------

```typescript
import { xiaalx, melpalt, imulpalt } from '@minofrk/palt';
```

`YearMonthDay` の定義は [src/types.ts](src/types.ts) にあります。

### 紫亞数

- `xiaalx.encode(YearMonthDay): number`
- `xiaalx.decode(number): YearMonthDay`

### メル暦

- `melpalt.encode(YearMonthDay): YearMonthDay`
- `melpalt.decode(YearMonthDay): YearMonthDay`

### イムル暦

- `imulpalt.encode(YearMonthDay): YearMonthDay`
- `imulpalt.decode(YearMonthDay): YearMonthDay`

Example
-------------------------------------------------------------------------------

```typescript
import { melpalt } from '@minofrk/palt';

const milpalt = melpalt.decode({ year: 0, month: 1, day: 1 });

console.log(milpalt); // { year: 1988, month: 11, day: 30 }
```

License
-------------------------------------------------------------------------------

See [LICENSE](LICENSE)
npm package: @minolettinat/proxy-figma-export-core
Description: @minolettinat/figma-export core functionalities
Author: Marco Montalbano
Latest version: 4.5.4

# @minolettinat/proxy-figma-export-core

> @minolettinat/figma-export core functionalities.

## Install

Using npm:

```sh
npm i -D @minolettinat/proxy-figma-export-core
```

or using yarn:

```sh
yarn add @minolettinat/proxy-figma-export-core --dev
```
npm package: @minolettinat/proxy-figma-export-output-components-as-es6
Description: Outputter for @minolettinat/proxy-figma-export that exports components in javascript file
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-components-as-es6

> Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports components in javascript file.

With this outputter you can export all components as variables inside a `.js` file called with the page name.

This is a sample of the output:

```sh
$ tree output/
# output/
# └── icons.js
```

For each file you will have a list of `export`.

```js
// icons.js
export const figmaExport = `<svg width="60" height="60" viewBox="0 0 60 60" fill="none" xmlns="http://www.w3.org/2000/svg"> ... </svg>`;
export const figmaLogo = `<svg width="40" height="60" viewBox="0 0 40 60" fill="none" xmlns="http://www.w3.org/2000/svg"> ... </svg>`;
```

> **Tip**: A component named `icon/eye` will be exported as variable named `iconEye`.

## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['components', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            onlyFromPages: ['icons', 'unit-test'],
            outputters: [
                require('@figma-export/output-components-as-es6')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getVariableName`, `useBase64` and `useDataUrl` are **optional**.

```js
const { camelCase } = require('@minolettinat/proxy-figma-export-utils');

...

require('@figma-export/output-components-as-es6')({
    output: './output',
    getVariableName: (options) => camelCase(options.componentName.trim()),
    useBase64: false,
    useDataUrl: false,
})
```

> *defaults may change, please refer to `./src/index.ts`*

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-components-as-es6
```

or using yarn:

```sh
yarn add @figma-export/output-components-as-es6 --dev
```

## Options

This task can be configured providing some options:

* `output` is the path to the output folder.
* `variablePrefix` and `variableSuffix` enable you to prepend or append a text to the variable name. This is necessary when your component name is a reserved word (e.g. `const`, `package`, ...).
* `useBase64` (boolean) will export each components using Base 64 encoding.

```js
// icons.js
export const figmaExport = `PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gLi4uIDwvc3ZnPg==`;
```

* `useDataUrl` (boolean) will export each components using [Data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format.

```js
// icons.js
export const figmaExport = `data:image/svg+xml,%3csvg width='60' height='60' viewBox='0 0 60 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3e ... %3c/svg%3e`;
```
npm package: @minolettinat/proxy-figma-export-output-components-as-stdout
Description: Outputter for @minolettinat/proxy-figma-export that outputs components in console as json
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-components-as-stdout

> Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that outputs components in console as json.

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-components-as-stdout
```

or using yarn:

```sh
yarn add @figma-export/output-components-as-stdout --dev
```
npm package: @minolettinat/proxy-figma-export-output-components-as-svg
Description: Outputter for @minolettinat/proxy-figma-export that exports components as svg
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-components-as-svg

> Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports components as svg.

With this outputter you can export all components as svg into the specified output folder.

This is a sample of the output from this [Figma file](https://www.figma.com/file/fzYhvQpqwhZDUImRz431Qo):

```sh
$ tree output/
# output
# ├── icons
# │   ├── figma-arrow.svg
# │   ├── figma-export.svg
# │   └── figma-logo.svg
# └── unit-test
#     ├── figma
#     │   ├── logo
#     │   │   ├── main (bright).svg
#     │   │   └── main.svg
#     │   └── logo.svg
#     └── figma default logo.svg
```

> **Tip**: A component named `icon/eye` will be exported as `eye.svg` inside the `icon` folder.

## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['components', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            onlyFromPages: ['icons', 'unit-test'],
            outputters: [
                require('@figma-export/output-components-as-svg')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getDirname` and `getBasename` are **optional**.

```js
const path = require('path');

...

require('@figma-export/output-components-as-svg')({
    output: './output',
    getDirname: (options) => `${options.pageName}${path.sep}${options.dirname}`,
    getBasename: (options) => `${options.basename}.svg`,
})
```

> *defaults may change, please refer to `./src/index.ts`*

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-components-as-svg
```

or using yarn:

```sh
yarn add @figma-export/output-components-as-svg --dev
```
npm package: @minolettinat/proxy-figma-export-output-components-as-svgr
Description: Outputter for @minolettinat/proxy-figma-export that exports components as React components using svgr
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-components-as-svgr

> Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports components as React components.

With this outputter you can export all Figma components as React components into the specified output folder.

This is a sample of the output from this [Figma file](https://www.figma.com/file/fzYhvQpqwhZDUImRz431Qo):

```sh
$ tree output/

# output
# ├── icons
# │   ├── FigmaArrow.jsx
# │   ├── FigmaExport.jsx
# │   ├── FigmaLogo.jsx
# │   └── index.js
# └── unit-test
#     ├── figma
#     │   ├── logo
#     │   │   ├── Main.jsx
#     │   │   ├── MainBright.jsx
#     │   │   └── index.js
#     │   ├── Logo.jsx
#     │   └── index.js
#     ├── FigmaDefaultLogo.jsx
#     └── index.js
```

> **Tip**: A figma component named `icon/eye` will be exported as `Eye.jsx` inside the `icon` folder. Another `index.js` file will be created inside the `icon` folder and this will export directly the `Eye` component.

## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['components', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            onlyFromPages: ['icons', 'unit-test'],
            outputters: [
                require('@figma-export/output-components-as-svgr')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getDirname`, `getComponentName`, `getComponentFilename`, `getFileExtension`, `getExportTemplate` and `getSvgrConfig` are **optional**.

```js
const path = require('path');
const { pascalCase } = require('@minolettinat/proxy-figma-export-utils');

...

require('@figma-export/output-components-as-svgr')({
    output: './output',
    getDirname: (options) => `${options.pageName}${path.sep}${options.dirname}`,
    getComponentName: (options) => `${pascalCase(options.basename)}`,
    getComponentFilename = (options): string => `${getComponentName(options)}`,
    getFileExtension: (options) => '.jsx',
    getSvgrConfig: (options) => ({}),
    getExportTemplate = (options): string => {
        const reactComponentName = getComponentName(options);
        const reactComponentFilename = `${getComponentFilename(options)}${getFileExtension(options)}`;
        return `export { default as ${reactComponentName} } from './${reactComponentFilename}';`;
    },
})
```

> *defaults may change, please refer to `./src/index.ts`*

`getComponentFilename` if not set, it will use the same value for `getComponentName`.

`getSvgrConfig` is a function that returns the [SVGR configuration](https://react-svgr.com/docs/options/) object.

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-components-as-svgr
```

or using yarn:

```sh
yarn add @figma-export/output-components-as-svgr --dev
```
npm package: @minolettinat/proxy-figma-export-output-components-as-svgstore
Description: Outputter for @minolettinat/figma-export that exports components in svg file ( SVG Sprites )
Author: Marco Montalbano
Latest version: 4.5.3

# @minolettinat/proxy-figma-export-output-components-as-svgstore

> Outputter for [@minolettinat/figma-export](https://github.com/marcomontalbano/figma-export) that exports components in svg file (`SVG Sprites`).

With this outputter you can export all components as `<symbol>` inside a `.svg` file named with the page name.

This is a sample of the output:

```sh
$ tree output/
# output/
# ├── icons.svg
# └── unit-test.svg
```

Probably you already know what <a target="_blank" rel="noopener noreferrer" href="https://css-tricks.com/css-sprites/">CSS Sprites</a> are, basically you can combine multiple images into a single image file and use it on a website.

**SVG Sprites** are very similar, but use svg instead of png.

You can read more on <a target="_blank" rel="noopener noreferrer" href="https://css-tricks.com/svg-sprites-use-better-icon-fonts/">Icon System with SVG Sprites</a> article where you can find how to use them.

## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['components', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            onlyFromPages: ['icons', 'unit-test'],
            outputters: [
                require('@minolettinat/proxy-figma-export-output-components-as-svgstore')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getIconId` and `svgstoreConfig` are **optional**.

```js
require('@minolettinat/proxy-figma-export-output-components-as-svgstore')({
    output: './output',
    getIconId: (options) => `${options.pageName}/${options.componentName}`,
    svgstoreConfig: {},
})
```

> *defaults may change, please refer to `./src/index.ts`*

`svgstoreConfig` is the [svgstore configuration](https://github.com/svgstore/svgstore#options) object.

## Install

Using npm:

```sh
npm install --save-dev @minolettinat/proxy-figma-export-output-components-as-svgstore
```

or using yarn:

```sh
yarn add @minolettinat/proxy-figma-export-output-components-as-svgstore --dev
```
npm package: @minolettinat/proxy-figma-export-output-styles-as-css
Description: Outputter for @minolettinat/proxy-figma-export that exports styles to CSS
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-styles-as-css

> Styles Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports styles to CSS.

With this outputter you can export all the styles as variables inside a `.css` file.

This is a sample of the output:

```sh
$ tree output/
# output/
# └── _variables.css
```


## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['styles', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            outputters: [
                require('@figma-export/output-styles-as-css')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getFilename` and `getVariableName` are **optional**.

```js
const { kebabCase } = require('@minolettinat/proxy-figma-export-utils');

...

require('@figma-export/output-styles-as-css')({
    output: './output',
    getFilename: () => '_variables',
    getVariableName: (style) => kebabCase(style.name).toLowerCase(),
})
```

> *defaults may change, please refer to `./src/index.ts`*

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-styles-as-css
```

or using yarn:

```sh
yarn add @figma-export/output-styles-as-css --dev
```
npm package: @minolettinat/proxy-figma-export-output-styles-as-less
Description: Outputter for @minolettinat/proxy-figma-export that exports styles to LESS
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-styles-as-less

> Styles Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports styles to LESS.

With this outputter you can export all the styles as variables inside a `.less` file.

This is a sample of the output:

```sh
$ tree output/
# output/
# └── _variables.less
```


## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['styles', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            outputters: [
                require('@figma-export/output-styles-as-less')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getFilename` and `getVariableName` are **optional**.

```js
const { kebabCase } = require('@minolettinat/proxy-figma-export-utils');

...

require('@figma-export/output-styles-as-less')({
    output: './output',
    getFilename: () => '_variables',
    getVariableName: (style) => kebabCase(style.name).toLowerCase(),
})
```

> *defaults may change, please refer to `./src/index.ts`*

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-styles-as-less
```

or using yarn:

```sh
yarn add @figma-export/output-styles-as-less --dev
```
npm package: @minolettinat/proxy-figma-export-output-styles-as-sass
Description: Outputter for @proxy-figma-export that exports styles to SASS and SCSS
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/output-styles-as-sass

> Styles Outputter for [@figma-export](https://github.com/marcomontalbano/figma-export) that exports styles to SASS and SCSS.

With this outputter you can export all the styles as variables inside a `.sass` or `.scss` file.

This is a sample of the output:

```sh
$ tree output/
# output/
# └── _variables.scss
```


## .figmaexportrc.js

You can easily add this outputter to your `.figmaexportrc.js`:

```js
module.exports = {
    commands: [
        ['styles', {
            fileId: 'fzYhvQpqwhZDUImRz431Qo',
            outputters: [
                require('@figma-export/output-styles-as-sass')({
                    output: './output'
                })
            ]
        }],
    ]
}
```

`output` is **mandatory**.

`getExtension`, `getFilename` and `getVariableName` are **optional**.

```js
const { kebabCase } = require('@minolettinat/proxy-figma-export-utils');

...

require('@figma-export/output-styles-as-sass')({
    output: './output',
    getExtension: () => 'SCSS',
    getFilename: () => '_variables',
    getVariableName: (style) => kebabCase(style.name).toLowerCase(),
})
```

> *defaults may change, please refer to `./src/index.ts`*

## Install

Using npm:

```sh
npm install --save-dev @figma-export/output-styles-as-sass
```

or using yarn:

```sh
yarn add @figma-export/output-styles-as-sass --dev
```
npm package: @minolettinat/proxy-figma-export-transform-svg-with-svgo
Description: Transformer for @minolettinat/figma-export that optimizes svgs using svgo tool
Author: Marco Montalbano
Latest version: 4.5.2

# @minolettinat/proxy-figma-export-transform-svg-with-svgo

> Transformer for [@minolettinat/figma-export](https://github.com/marcomontalbano/figma-export) that optimizes svgs using [svgo](https://github.com/svg/svgo) tool.

## Install

Using npm:

```sh
npm install --save-dev @minolettinat/proxy-figma-export-transform-svg-with-svgo
```

or using yarn:

```sh
yarn add @minolettinat/proxy-figma-export-transform-svg-with-svgo --dev
```

## Usage

You can use a custom configuration for svgo, creating a `.figmaexportrc.js` file and provide a `config` object for this package.

```js
// .figmaexportrc.js

module.exports = {
  configs: [
    ['@minolettinat/proxy-figma-export-transform-svg-with-svgo', {
      plugins: [
        {
          name: 'preset-default',
          params: {
            overrides: {
              removeViewBox: false,
            }
          }
        },
        {
          name: 'removeDimensions',
          active: true
        }
      ]
    }]
  ]
};
```
npm package: @minolettinat/proxy-figma-export-types
Description: Type definition for @minolettinat/proxy-figma-export
Author: Marco Montalbano
Latest version: 4.5.1

# @minolettinat/proxy-figma-export-types

> Types for [@minolettinat/proxy-figma-export](https://github.com/minolettin/proxy-figma-export).

## Install

Using npm:

```sh
npm install --save-dev @minolettinat/proxy-figma-export-types
```

or using yarn:

```sh
yarn add @minolettinat/proxy-figma-export-types --dev
```
npm package: @minolettinat/proxy-figma-export-utils
Description: Utils for @proxy-figma-export
Author: Marco Montalbano
Latest version: 4.5.1

# @figma-export/utils

> Utils for [@figma-export](https://github.com/marcomontalbano/figma-export).

## Install

Using npm:

```sh
npm install --save-dev @figma-export/utils
```

or using yarn:

```sh
yarn add @figma-export/utils --dev
```
npm package: @minolettinat/proxy-figma-js
Description: A simple wrapper for the Figma API
Latest version: 1.16.1

# Figma.js

A simple wrapper for the Figma API.

Cool projects using this:
- [figma-graphql](https://github.com/braposo/figma-graphql)
- [figmint](https://github.com/tiltshift/figmint)

## Usage

[Full documentation](https://jemgold.github.io/figma-js) is available on the web and most everything is typed with TypeScript.

### Creating a client

Quickest start is to grab a personal access token from your Figma account settings page

```typescript
import * as Figma from 'figma-js';

const token = '12345';

const client = Figma.Client({
  personalAccessToken: token
});
```

Or if you're building an app with OAuth authentication, after you get back the OAuth access token…

```typescript
import * as Figma from 'figma-js';

const token = '12345';

const client = Figma.Client({
  accessToken: token
});
```

### Doing cool things

Once you have instantiated a client, have fun!

```typescript
client.file('file-id').then(({ data }) => {
  console.log(data);
});
```

### Just reusing types

All of the types in the Figma file format / API are exported.

```typescript
import * as Figma from 'figma-js';

const textNode: Figma.Text = {
  // … this should autocomplete if your editor is set up for it!
};
```

## Contributing

We used the [`typescript-starter`](https://github.com/bitjson/typescript-starter) repo for this - refer to its README for more detailed instructions.

Helpful development commands:

```sh
yarn watch
yarn docs
yarn docs:publish
```

### Contributions welcomed

* [ ] [generate types automatically](https://github.com/jemgold/figma-js/issues/1)
* [ ] [add tests](https://github.com/jemgold/figma-js/issues/2)

### Committing

```sh
yarn global add commitizen

# instead of git commit

git cz
```

## Contributors

* [@jemgold](https://github.com/jemgold/) (Airbnb)
* [@chrisdrackett](https://github.com/chrisdrackett/)
npm package: @minon250/outsiide-messanger
Description: This is a library intended for use by Outsiide organization only. Its purpose is to facilitate the sending of push notifications through Firebase Cloud Messaging and the sending of SMS messages using Twilio. With this library, developers can easily integr
Author: Minon Weerasinghe
Latest version: 0.0.7-development

# outsiide-messager

This is a library intended for use by Outsiide organization only. Its purpose is to facilitate the sending of push notifications through Firebase Cloud Messaging and the sending of SMS messages using Twilio. With this library, developers can easily integrate push notification and SMS functionality into their applications, allowing for real-time communication with their users.

## Get Started

1. To use FCM set the env `GOOGLE_APPLICATION_CREDENTIALS` in your environement. This points to the Firebase Service Account Key
npm package: @minons1/simple-timer
Description: Simple Timer Library on NodeJS
Author: @minons1
Latest version: 0.1.0

# Simple Timer

A simple and flexible timer library for Node.js that has pause, resume, restart and stop functionality with TypeScript support.

## Installation

```bash
npm install @minons1/simple-timer
```

## Usage

```typescript
import SimpleTimer from '@minons1/simple-timer';

// Create a timer that executes every 1000ms (1 second)
const timer = new SimpleTimer({
  intervalInMs: 1000,
  callback: () => console.log('Timer tick!')
});

// Start the timer
timer.start();

// Pause the timer
timer.pause();

// Resume from where it was paused
timer.resume();

// Restart the timer (resets the interval)
timer.restart();

// Stop the timer
timer.stop();
```

## API

### Constructor

```typescript
new SimpleTimer({ intervalInMs: number, callback: () => T })
```

### Methods

- `start()`: Starts the timer
- `pause()`: Pauses the timer, preserving the remaining time
- `resume()`: Resumes the timer from where it was paused
- `restart()`: Resets and restarts the current interval
- `stop()`: Stops the timer completely

### Properties

- `isRunning`: Returns true if the timer is currently running
- `isPaused`: Returns true if the timer is currently paused
- `nextExecutionIn`: Returns the number of milliseconds until the next execution (null if not running)

## Example with TypeScript

```typescript
interface TaskResult {
  status: string;
}

const timer = new SimpleTimer<TaskResult>({
  intervalInMs: 2000,
  callback: () => ({ status: 'completed' })
});
```

## License

MIT License

Copyright (c) 2023

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Here's how you can contribute:

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

Please make sure to update tests as appropriate and follow the existing code style.
npm package: @minoris/images
Description: Packages to help us wrangle images at Minoris.
Latest version: 1.1.3

# images

[![CircleCI](https://circleci.com/gh/minoris-io/images.svg?style=svg&circle-token=3a8fc955d07b5bd4cb53eeb4b01c57cde84e1154)](https://circleci.com/gh/minoris-io/images)

Tools to help us wrangle images at Minoris.

## Installation

```bash
$ yarn add @minoris/images
```

## API

### `icon-loader.js`

This package exports a loader that is intended to be used with Webpack. It processes icon files into objects that we can use to render our shared Icon component.

### `optimize.js`

This package exports helpers for optimizing images. The following members are exported:

* `svgOptions`: an object containing our recommended options for using SVGO.

## License

MIT, see [LICENSE.md](http://github.com/minoris-io/images/blob/master/LICENSE.md) for details.

<img src="https://cdn.minoris.com/minoris-marketing_assets/builds/19.0.0/minoris-full-color-black.svg" width="200" />
npm package: @minoris/javascript-utilities
Description: A set of utilities for JavaScript and TypeScript projects at Minoris.
Author: Minoris
Latest version: 2.2.1

<div align="center">
  <h1>javascript-utilities</h1>
  <h4>A set of utilities for JavaScript and TypeScript projects at Minoris.</h4>
  <a href="https://circleci.com/gh/minoris-io/javascript-utilities">
    <img src="https://circleci.com/gh/minoris-io/javascript-utilities.svg?style=shield"
         alt="CircleCI">
  </a>
  <a href="https://badge.fury.io/js/%40minoris%2Fjavascript-utilities">
    <img src="https://badge.fury.io/js/%40minoris%2Fjavascript-utilities.svg" alt="npm version">
  </a>
  <a href="https://github.com/minoris-io/javascript-utilities/blob/master/LICENSE.md">
    <img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License: MIT">
  </a>
</div>

## Table of Contents

  - [Installation](#installation)
  - [API](#api-reference)
  - [Contribute](#contribute)
  - [License](#license)
  - [Changelog](http://github.com/minoris-io/javascript-utilities/blob/master/CHANGELOG.md)

## Installation

```bash
$ yarn add @minoris/javascript-utilities
```

## API Reference

See the comments and TypeScript annotations in the code for details on the provided utilities.

## Contribute

Check out our [Contributing Guidelines](http://github.com/minoris-io/javascript-utilities/blob/master/CONTRIBUTING.md)

## License

MIT &copy; [Minoris](https://minoris.io/), see [LICENSE.md](http://github.com/minoris-io/javascript-utilities/blob/master/LICENSE.md) for details.

<a href="http://www.minoris.io/"><img src="https://cdn.minoris.io/assets2/press/brand/minoris-logo-main-small-f029fcaf14649a054509f6790ce2ce94d1f1c037b4015b4f106c5a67ab033f5b.png" alt="Minoris" width="200" /></a>
npm package: @minoris/js-uploader
Description: Utility for deploying JS projects to S3 and npm via shipit
Latest version: 0.1.0

# JS Uploader

Use to upload files to S3 and NPM.

## Requirements

- Node 4+

## Configuration

You will need to have a config.ejson file with the following keys:

```
{
    "_public_key": "",
    "aws": {
        "accessKeyId": "",
        "secretAccessKey": "",
        "region": "",
        "bucket": ""
    }
}
```

You must ensure shipit runs the following command before deploy script is run.

```
ejson decrypt -o config.json config.ejson
```

## Usage

Instantiate an `Uploader` with config object for your project:

```
/**
 * @param {S3} config.s3 - aws s3 instance
 * @param {Array} config.files - array of file paths to upload
 * @param {String} config.dir - directory to upload all files from
 * @param {String} config.destination - name of s3 directory to upload to
 * @param {Number|String} config.version - version number
 * @param {Boolean} [true] config.latest - whether to upload /latest file
 */
```

```
const awsSDK = require('aws-sdk');
const awsConfig = require('../config.json').aws;
const Uploader = require('js-uploader');
const uploader = new Uploader({

const awsS3 = new awsSDK.S3({
  accessKeyId: awsConfig.accessKeyId,
  secretAccessKey: awsConfig.secretAccessKey,
  region: awsConfig.region,
  params: {
    Bucket: awsConfig.bucket,
    ACL: 'public-read'
  }
});

const uploader = new Uploader({
  s3: awsS3,
  dir: 'dist',
  destination: 'buy-button',
  version: currentVersion,
});

uploader.deployStaticFiles();
uploader.npmPublish();
```

Add the above to a JS file and add it to your shpit.yml:

```
deploy:
  override:
    - npm install --no-progress
    - ejson decrypt -o config.json config.ejson
    - npm run build
    - node ./scripts/my-deply-script.js
```
npm package: @minoris/react-serialize
Description:  Provides an idiomatic way to serialize data for rehydration in a universal react application.
Latest version: 1.1.1

#  `@minoris/react-serialize`

[![Build Status](https://travis-ci.org/Minoris/quilt.svg?branch=master)](https://travis-ci.org/Minoris/quilt)
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE.md) [![npm version](https://badge.fury.io/js/%40minoris%2Freact-serialize.svg)](https://badge.fury.io/js/%40minoris%2Freact-serialize) ![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/@minoris/react-serialize.svg)

Provides an idiomatic way to serialize data for rehydration in a universal react application.

## Installation

```bash
$ yarn add @minoris/react-serialize
```

## Usage

On the server, the `<Serializer />` component will serialize whatever you pass as it's `data` prop.

```javascript
// in your server renderer
import {Serializer} from '@minoris/react-serialize';

...

const apolloState = getDatafromTree(appMarkup)

const markup = react.renderToString(
  <React.Fragment>
    {appMarkup}
    <Serializer id="apollo-data" data={apolloState}>
  </React.Fragment>
);
```

Then on the client, you can use `getSerialized` to fetch that data out of the DOM and initialize whatever you need.

```javascript
// when you are rehydrating on the client
import {getSerialized} from '@minoris/react-serialize';
import ApolloClient from 'apollo-client';

...

const {data: initialApolloData} = getSerialized('apollo-data');
const client = new ApolloClient({
  ...myConfig,
  cache: cache.restore(initialApolloData),
});
```
npm package: @minoris/react-utilities
Description: A set of utilities for React projects at Minoris.
Latest version: 2.0.3

# react-utilities

[![CircleCI](https://circleci.com/gh/minoris-io/react-utilities.svg?style=shield&circle-token=3a8fc955d07b5bd4cb53eeb4b01c57cde84e1154)](https://circleci.com/gh/minoris-io/react-utilities)

A set of utilities for React projects at Minoris.

## Installation

```bash
$ yarn add @minoris/react-utilities
```

## API

See the comments and TypeScript annotations in the code for details on the provided utilities.

## License

MIT, see [LICENSE.md](http://github.com/minoris-io/react-utilities/blob/master/LICENSE.md) for details.

<img src="https://cdn.minoris.com/minoris-marketing_assets/builds/19.0.0/minoris-full-color-black.svg" width="200" />
npm package: @minot0r/iutcalendar
Description: Get courses from IUT using HTTP GET using ical library on IUT's EDT WebServers
Author: minot0r
Latest version: 1.0.7

[![Build Status](https://travis-ci.org/minot0r/iutcalendar.svg?branch=master)](https://travis-ci.org/minot0r/iutcalendar)

# iutcalendar
a npm package to retrieve courses of Nantes' IUT

# install
install using
`npm i @minot0r/iutcalendar`

# example

[Docs](https://minot0r.github.io/iutcalendar/)
this is a basic example of getting next course using iutcalendar

```js
/* Basically you're creating your EDT object, then you build it, 
 * build here does retrieve all courses from constructor parameters
 * and returns a Promise which gives you back your EDT object
 * with courses loaded.
 * 
 * Play around with other EDT methods which you can find on docs
 */
new EDT(new Group(1, 1), new Date()).build().then(edt => {
    let nextCourse = edt.getClosestCourse()
    // Play around with your course, find all data you can get from it with docs
}).catch(err => {
    // In case there is an error
})
```
npm package: @minotaur_sales/n8n-nodes-minotaur-sales
Description: n8n nodes for integration with Minotaur sales
Author: Minotaur sales
Latest version: 0.2.5

# n8n-nodes-minotaur-sales

This is an n8n community node. It lets you use _app/service name_ in your n8n workflows.

_App/service name_ is _one or two sentences describing the service this node integrates with_.

[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/) workflow automation platform.

[Installation](#installation)
[Operations](#operations)
[Credentials](#credentials)
[Compatibility](#compatibility)
[Usage](#usage)
[Resources](#resources)
[Version history](#version-history)

## Installation

Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n community nodes documentation.

## Operations

_List the operations supported by your node._

## Credentials

_If users need to authenticate with the app/service, provide details here. You should include prerequisites (such as signing up with the service), available authentication methods, and how to set them up._

## Compatibility

_State the minimum n8n version, as well as which versions you test against. You can also include any known version incompatibility issues._

## Usage

_This is an optional section. Use it to help users with any difficult or confusing aspects of the node._

_By the time users are looking for community nodes, they probably already know n8n basics. But if you expect new users, you can link to the [Try it out](https://docs.n8n.io/try-it-out/) documentation to help them get started._

## Resources

* [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
* _Link to app/service documentation._

## Version history

_This is another optional section. If your node has multiple versions, include a short description of available versions and what changed, as well as any compatibility impact._
npm package: @minozzzi/eslint-config
Description: ESLint configuration used by github.com/minozzzi.
Author: Guilherme Minozzi
Latest version: 0.0.2

# ESLint config

## Whats included?

- React plugin;
- React Hooks plugin;
- Prettier;
- JSX a11y plugin;
- Import plugin;
- @Typescript-eslint plugin;
- And more!!

### And amazing eslint rules

## Setup

### 1. Install the dependencies

```bash
npm i -D eslint @minozzzi/eslint-config
```

#### or if you use yarn

```bash
yarn add -D eslint @minozzzi/eslint-config
```

#### or if you use pnpm

```bash
pnpm i -D eslint @minozzzi/eslint-config
```

### 2. Create a `.eslintrc.json` file extending the config

```javascript
{
  "extends": "@minozzzi/eslint-config/node"
}
```

OR

```javascript
{
  "extends": "@minozzzi/eslint-config/react"
}
```

OR

```javascript
{
  "extends": "@minozzzi/eslint-config/next"
}
```

> You can also use a `.eslintrc.js` instead of JSON if you prefer.