open-index/open-npm huggingface dataset:
npm package: @rdlabo/astrolabio
Description: calculate constellations and astrology.
Author: Masahiko Sakakibara
Latest version: 0.0.11

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![eslint](https://github.com/ts-templates/node16/actions/workflows/eslint.yml/badge.svg)](https://github.com/ts-templates/node16/actions/workflows/eslint.yml)
[![test](https://github.com/ts-templates/node16/actions/workflows/test.yml/badge.svg)](https://github.com/ts-templates/node16/actions/workflows/test.yml)

# @ts-templates/node16

Template for TypeScript project using Node.js v16

## Features

- [ESLint](https://eslint.org/) with [JavaScript Standard Style](https://standardjs.com/)
  - Run on pre-commit hook by [husky](https://typicode.github.io/husky/) and [lint-staged](https://github.com/okonet/lint-staged)
  - Run on Pull request by GitHub Actions
- Test by [Jest](https://jestjs.io/)
  - Run on Pull request by GitHub Actions
- Manage Node.js version by [nvm](https://github.com/nvm-sh/nvm)
- Manage dependency updates by [Renovate](https://renovatebot.com/)

## Usage

1. [Create repository](https://github.com/ts-templates/node16/generate) using template
2. Replace provisional string with actual string
    - `https://github.com/ts-templates/node16` => your repository URL
    - `@ts-templates/node16` => your package name
    - `Template for TypeScript project using Node.js v16` => your package description
3. Implement `src/main.ts`

## Scripts

```sh
# Compile TypeScript files to JavaScript files
npm run build

# Remove built files
npm run clean

# Run linters
npm run lint

# Run main.ts
npm start

# Run tests
npm test
```
npm package: @rdlabo/capacitor-plugin-to-v4
Description: migrate capacitor plugin from v3 to v4
Author: Masahiko Sakakibara
Latest version: 1.0.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# capacitor-plugin-to-v4

This is a command tool that automatically update the capacitor plugin version 3 to 4. This library follows the changes in https://github.com/ionic-team/create-capacitor-plugin/commit/03027bf603626ebfdba084cb9d9a1a359d008554

At least, this library is used to make the following plugins Capacitor4-compatible.

- @capacitor-community/admob
- @capacitor-community/stripe
- @capacitor-community/facebook-login

## usage

run `npx` command into plugin folder.

```bash
% npx @rdlabo/capacitor-plugin-to-v4  
```

## result

```bash
Need to install the following packages:
@rdlabo/capacitor-plugin-to-v4
Ok to proceed? (y) y

[info] @rdlabo/capacitor-plugin-to-v4 path is /Users/sakakibara/.npm/_npx/8b6523b6da3b9745/node_modules/@rdlabo/capacitor-plugin-to-v4/src
[info] working path is /Users/sakakibara/dev/capacitor-stripe
[info] get update lines of /Users/sakakibara/dev/capacitor-stripe/package.json
[info] get update lines of /Users/sakakibara/dev/capacitor-stripe/CapacitorCommunityStripe.podspec and /Users/sakakibara/dev/capacitor-stripe/ios/Podfile
[info] get update lines of /Users/sakakibara/dev/capacitor-stripe/ios/Plugin.xcodeproj/project.pbxproj
[info] get update lines of /Users/sakakibara/dev/capacitor-stripe/android/build.gradle
[info] get update lines of /Users/sakakibara/dev/capacitor-stripe/android/gradle/wrapper/gradle-wrapper.properties
[success] write /Users/sakakibara/dev/capacitor-stripe/package.json
[success] write /Users/sakakibara/dev/capacitor-stripe/CapacitorCommunityStripe.podspec
[success] write /Users/sakakibara/dev/capacitor-stripe/ios/Podfile
[success] write /Users/sakakibara/dev/capacitor-stripe/ios/Plugin.xcodeproj/project.pbxproj
[success] write /Users/sakakibara/dev/capacitor-stripe/android/build.gradle
[success] write /Users/sakakibara/dev/capacitor-stripe/android/gradle/wrapper/gradle-wrapper.properties
[success] write /Users/sakakibara/dev/capacitor-stripe/android/gradlew
success migrate to v4🎉
Next step: You should run `npm install`
```

## Troubleshooting

### removed `jcenter()` before run

If plugin had manually removed `jcenter()`, will not work well. When this, you should check `android/build.gradle` and add `mavenCentral()` manually.

For the correct configuration, please click here:
https://github.com/ionic-team/create-capacitor-plugin/commit/03027bf603626ebfdba084cb9d9a1a359d008554#diff-51795f26cbdfdde24931f6d0f9d6f047f4617fc6a6cb850029cd78c8e0e9b90d
npm package: @rdlabo/capacitor-printer
Description: printer plugin for capacitor
Author: Masahiko Sakakibara
Latest version: 8.0.0

# @rdlabo/capacitor-printer

printer plugin for capacitor

## Install

```bash
npm install @rdlabo/capacitor-printer
npx cap sync
```

## API

<docgen-index>

* [`printWebView()`](#printwebview)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### printWebView()

```typescript
printWebView() => Promise<void>
```

--------------------

</docgen-api>
npm package: @rdlabo/capacitor-screenshot-event
Description: Notification that user shot screenshot
Author: Masahiko Sakakibara
Latest version: 8.0.0

# @rdlabo/capacitor-screenshot-event

Notification that user shot screenshot

## 💖 Support This Project

Enjoying this project? Your support helps keep it alive and growing!  
Sponsoring means you directly contribute to new features, improvements, and maintenance.

[Become a Sponsor →](https://github.com/sponsors/rdlabo)

## Install

```bash
npm install @rdlabo/capacitor-screenshot-event
npx cap sync
```

## Usage

```ts
(() => {
  ScreenshotEvent.addListener('userDidTakeScreenshot', () => {
    // Notice take screenshot
  });

  // Start watch take event
  ScreenshotEvent.startWatchEvent();
})();
```

## API

<docgen-index>

* [`startWatchEvent()`](#startwatchevent)
* [`removeWatchEvent()`](#removewatchevent)
* [`addListener('userDidTakeScreenshot', ...)`](#addlisteneruserdidtakescreenshot-)
* [Interfaces](#interfaces)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### startWatchEvent()

```typescript
startWatchEvent() => Promise<void>
```

--------------------


### removeWatchEvent()

```typescript
removeWatchEvent() => Promise<void>
```

--------------------


### addListener('userDidTakeScreenshot', ...)

```typescript
addListener(eventName: 'userDidTakeScreenshot', listenerFunc: () => void) => Promise<PluginListenerHandle>
```

| Param              | Type                                 |
| ------------------ | ------------------------------------ |
| **`eventName`**    | <code>'userDidTakeScreenshot'</code> |
| **`listenerFunc`** | <code>() =&gt; void</code>           |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt;</code>

--------------------


### Interfaces


#### PluginListenerHandle

| Prop         | Type                                      |
| ------------ | ----------------------------------------- |
| **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |

</docgen-api>
npm package: @rdlabo/ionic-sub
Description: operate ionic project
Author: Masahiko Sakakibara
Latest version: 0.4.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/rdlabo)
[![Build Status](https://travis-ci.org/rdlabo/ionic-sub-cli.svg?branch=master)](https://travis-ci.org/rdlabo/ionic-sub-cli)
[![npm version](https://badge.fury.io/js/%40rdlabo%2Fionic-sub.svg)](https://badge.fury.io/js/%40rdlabo%2Fionic-sub)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE)

# Ionic-sub CLI
This is private command line interface (CLI) for support Ionic CLI. 
This CLI support for developing Ionic Framework Project.

## Install
```bash
$ npm i @rdlabo/ionic-sub -g
```

- The corresponding version of nodejs is version 8 or higher!

## Usage

Just run the command!

### set
```bash
$ ionic-sub set all
$ ionic-sub set lint
$ ionic-sub set formatter
$ ionic-sub set alias
```

#### set all
This command run all set environment. 
it's recommended;

#### set lint
This command rewrite tslint.json base of Angular 6.

#### set formatter

This command set formatter. Import `prettier` and set `package.json`.

#### set alias

You can use `@` alias. `@` connect `src` folder. so you can write.

```
import { HomePage } from '../pages/home/home';
↓
import { HomePage } from '@/pages/home/home';
```

```
import { Example } from '../../providers/example/example';
↓
import { HomePage } from '@/providers/example/example';
```

And you can use environment file. This change `--prod` or none. 
(This is __ionic-angular(v3) only.__ angular(v4) have default environment file)

```
import { environment } from '@app/environment';

console.log(environment)
```

Environment file create `src/environments`. If you add command `--prod`, environment is `environment/environment.prod.ts`. 
Or nothing, environment is `environment/environment.dev.ts`.


#### beta: set mount

This command is angular(v4) only. Add this development file.

- src/app/components/components.module.ts
- src/app/directives/directives.module.ts
- src/app/pipes/pipes.module.ts
- src/interfaces/index.ts

### server
```bash
$ ionic-sub server netlify -d example.com
```

#### server netlify
This command create Netlify's build file. This file auto set this.

1. create robot.txt.
2. create _redirects for redirect to www.
3. create _headers for ServerPush.
4. change styles inline. (v4 only)

You should add Build command node netlify.build.js in Netlify's deploy setting.

## License
[MIT](https://github.com/k-kuwahara/ja-greetings/blob/master/LICENSE)

## Donation
If this project help you reduce time to develop, you can give me a cup of coffee :) 

[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/rdlabo)

## Others
I'm waiting for you at any time, including code reviews, bug reports, feature additions, questions and more!
npm package: @rdlabo/rabify-cli
Description: CLI for rabify
Author: Relation Design Labo, General Inc. Association
Latest version: 0.3.0

rabify-cli
==========

CLI for rabify

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/rabify-cli.svg)](https://npmjs.org/package/rabify-cli)
[![Downloads/week](https://img.shields.io/npm/dw/rabify-cli.svg)](https://npmjs.org/package/rabify-cli)
[![License](https://img.shields.io/npm/l/rabify-cli.svg)](https://github.com/https://github.com/rdlabo/rdlabo-cli/rabify-cli/blob/master/package.json)

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->
# Usage
<!-- usage -->
```sh-session
$ npm install -g @rdlabo/rabify-cli
$ rabify COMMAND
running command...
$ rabify (-v|--version|version)
@rdlabo/rabify-cli/0.2.1 darwin-x64 node-v10.16.2
$ rabify --help [COMMAND]
USAGE
  $ rabify COMMAND
...
```
<!-- usagestop -->
# Commands
<!-- commands -->
* [`rabify ci [TYPE]`](#rabify-ci-type)
* [`rabify hello [FILE]`](#rabify-hello-file)
* [`rabify help [COMMAND]`](#rabify-help-command)

## `rabify ci [TYPE]`

Build Command for rabify CI

```
USAGE
  $ rabify ci [TYPE]

OPTIONS
  -h, --help         show CLI help
  -i, --id=id        id key in rabify CI
  -t, --token=token  token key in rabify CI

EXAMPLE
  $ rabify ci run --id=[REPLACE_YOUR_ID] --token=[REPLACE_YOUR_TOKEN]
```

_See code: [src/commands/ci.ts](https://github.com/rdlabo/rdlabo-cli/rabify-cli/blob/v0.2.1/src/commands/ci.ts)_

## `rabify hello [FILE]`

describe the command here

```
USAGE
  $ rabify hello [FILE]

OPTIONS
  -f, --force
  -h, --help       show CLI help
  -n, --name=name  name to print

EXAMPLE
  $ rabify hello
  hello world from ./src/hello.ts!
```

_See code: [src/commands/hello.ts](https://github.com/rdlabo/rdlabo-cli/rabify-cli/blob/v0.2.1/src/commands/hello.ts)_

## `rabify help [COMMAND]`

display help for rabify

```
USAGE
  $ rabify help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI
```

_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.2.3/src/commands/help.ts)_
<!-- commandsstop -->
npm package: @rdlabo/rdlabo-cli
Description: This is business CLI for Relation Design Labo.
Author: Masahiko Sakakibara
Latest version: 0.1.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

rdlabo-cli
==========

This is business CLI for Relation Design Labo.

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)


# Usage
## 準備
```bash
$ npm i -g @rdlabo/rdlabo-cli
```

## 更新
```bash
$ npm i -g @rdlabo/rdlabo-cli
```

# Commands
__ControllerとLayoutの作成__
```bash
$ rdlabo ci create --layoutPath=user/admin/account
```

__Controllersからテスト作成__
```bash
$ rdlabo ci create --autoCreateTest=controllers
```
npm package: @rdlabo/support-ionic-appflow-monorepo
Description: Script for support ionic appflow monorepo
Author: Masahiko Sakakibara
Latest version: 0.1.2

@rdlabo/support-ionic-appflow-monorepo
======================================

This script for support monorepo structure at Ionic AppFlow 

[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
[![Version](https://img.shields.io/npm/v/@rdlabo/support-ionic-appflow-monorepo.svg)](https://npmjs.org/package/@rdlabo/support-ionic-appflow-monorepo)
[![Downloads/week](https://img.shields.io/npm/dw/@rdlabo/support-ionic-appflow-monorepo.svg)](https://npmjs.org/package/@rdlabo/support-ionic-appflow-monorepo)
[![License](https://img.shields.io/npm/l/@rdlabo/support-ionic-appflow-monorepo.svg)](https://github.com/rdlabo-team/support-ionic-appflow-monorepo/blob/master/package.json)


Ionic AppFlow don't support monorepo structure now.
So this script will solve your problem, if your repository looks like this:

```
project
 ├── package.json
 ├── api/  -- framework like NestJS
 └── {APP_DIR}/  -- capacitor apps
```

This script work three step.

1. Check require packages from Ionic CLI and {APP_DIR} package.json
2. Install require packages to project directory.
3. Copy file for using Ionic AppFlow from {APP_DIR}.

# Usage
You can freely name the app directory. In this usage, app directory name display {APP_DIR}. Please replace name at your environment.

## 1. Copy file
Copy `capacitor.config.json` file from {APP_DIR} to project directory. Ionic AppFlow checked these file before npm build. So you should copy manually.

- `{APP_DIR}/capacitor.config.json` => `./capacitor.config.json`

You can use this command:
```sh-session
% cp -r -f {APP_DIR}/capacitor.config.json ./
```

## 2. Set npm script

```diff
  "scripts": {
    ...
+   "postbuild": "npx @rdlabo/support-ionic-appflow-monorepo --path={APP_DIR}"
  },
```
npm package: @rdm/prettier-config
Description: A customized Prettier configuration.
Author: Ryan Murphy
Latest version: 3.0.0

# @rdm/prettier-config

My preferred Prettier configuration.

## Usage

Install:

```sh
npm install --save-dev @rdm/prettier-config
```

Add to `package.json`:

```json
{
	// ...
	"prettier": "@rdm/prettier-config"
}
```

## License

MIT
npm package: @rdmchr/image-hash
Description: Create a hash from an image
Author: Daniel Morrison
Latest version: 1.0.1

# image-hash

A wrapper around [block-hash](https://github.com/commonsmachinery/blockhash-js) to easily hash a local or remote file with Node.

Supports JPG, PNG and WebP

## Install

```bash
npm i image-hash
```

## Use

```javascript
const { imageHash }= require('image-hash');

// remote file simple
imageHash('https://ichef-1.bbci.co.uk/news/660/cpsprodpb/7F76/production/_95703623_mediaitem95703620.jpg', 16, true).then(data => {
  console.log(data);
  // 0773063f063f36070e070a070f378e7f1f000fff0fff020103f00ffb0f810ff0
});

//local file
imageHash('./_95695590_tv039055678.jpg', 16, true).then(data => {
  console.log(data);
  // 0773063f063f36070e070a070f378e7f1f000fff0fff020103f00ffb0f810ff0
});

//Buffer
const fBuffer = fs.readFileSync(__dirname + '/example/_95695591_tv039055678.jpeg');
imageHash({
  ext: 'image/jpeg',
  data: fBuffer
}, 16, true).then(data => {
  console.log(data);
  // 0773063f063f36070e070a070f378e7f1f000fff0fff020103f00ffb0f810ff0
});

//Buffer, without ext arg
const fBuffer = fs.readFileSync(__dirname + '/example/_95695591_tv039055678.jpeg');
imageHash({
  data: fBuffer
}, 16, true).then(data => {
  console.log(data);
  // 0773063f063f36070e070a070f378e7f1f000fff0fff020103f00ffb0f810ff0
});
```

## API

```typescript
// name
imageHash(location, bits, precise);

// types
imageHash(string|object, int, bool): Promise<string>;
```

## SETTINGS
Image hash will log out warnings if environment variable `VERBOSE` is set to true.


### Image-Hash Arguments

| Argument | Type | Description | Mandatory | Example |
| -------- | ---- | ----------- | --------- | ------- |
| location | `object` or `string` | `Buffer` object (See input types below for more details), or `String` with a valid url or file location | Yes | see above |
| bits | `int` | The number of bits in a row. The more bits, the more unique the hash. | Yes | 8 |
| precise  | `bool` | Whether a precision algorithm is used. `true` Precise but slower, non-overlapping blocks. `false` Quick and crude, non-overlapping blocks. Method 2 is recommended as a good tradeoff between speed and good matches on any image size. The quick ones are only advisable when the image width and height are an even multiple of the number of blocks used. | Yes | `true` |

#### Location Object Types

```typescript
// Buffer Object
interface BufferObject {
  ext?: string, // mime type of buffered file
  data: Buffer,
  name?: string // file name for buffered file
};
```

## Credit

See the original repo by [Daniel Morrison](https://github.com/danm/image-hash) and the pull request, which this repo is based on by [Luna](https://github.com/ImLunaHey/image-hash/tree/main).

The hard bit of this comes with thanks from [commonsmachinery](https://github.com/commonsmachinery) for [blockhash-js](https://github.com/commonsmachinery/blockhash-js)

## License

Distributed under an MIT license
npm package: @rdme/curve-2d
Description: 2d curves in typescript
Author: Propero Team
Latest version: 1.2.0

[![Build Status](https://app.travis-ci.com/propero-oss/curve-2d.svg?branch=master)](https://app.travis-ci.com/propero-oss/curve-2d)
[![Maintainability](https://api.codeclimate.com/v1/badges/68e1717b587f89ed0a75/maintainability)](https://codeclimate.com/github/propero-oss/curve-2d/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/68e1717b587f89ed0a75/test_coverage)](https://codeclimate.com/github/propero-oss/curve-2d/test_coverage)
[![npm](https://img.shields.io/npm/v/@rdme/curve-2d)](https://www.npmjs.com/package/@rdme/curve-2d)
[![NPM](https://img.shields.io/npm/l/@rdme/curve-2d)](LICENSE.md)
![Types](https://img.shields.io/npm/types/@rdme/curve-2d)

# Curve 2d
simple 2d curve library supporting beziers, catmulls, arcs,
lines and any combinations thereof. Also contains some vec2d utils.


## Installing
```
npm i @rdme/curve-2d
```
```
yard add @rdme/curve-2d
```
```
pnpm i @rdme/curve-2d
```

## Documentation
TODO: Docs
npm package: @rdmo-author/schema
Description: A JSON schema for maintaining RDMO contents
Author: Tamara Cook
Latest version: 0.8.3

# RDMO JSON Schema

This project contains a JSON schema for maintaining [RDMO] catalogs.
The schema itself can be found under <https://rdmo-json.gitlab.io/schema/catalog.schema.json>.

## Quick start

If you want to write JSON documents conforming to my catalog schema,
I recommend you the following setup for productive writing:

1. Install and open [VSCode]
2. Create a new file and save it as JSON file, E.G. `catalog.json`
3. Insert the following snippet:

```json
{
  "$schema": "https://rdmo-json.gitlab.io/schema/catalog.schema.json",
}
```

If you continue typing after the $schema line,
VSCode will provide validation, formatting, navigation, and autocompletion
(see [JSON editing in Visual Studio Code] for more instructions).

If you are new to JSON, you can read [a short introduction to JSON](docs/json.md).

## Install

```shell
npm i @rdmo-author/schema
```

## Usage

The module has two exports:

- `schema`: The JSON schema itself
- `validate`: A validation function compiled by [Ajv]

[RDMO]: https://rdmorganiser.github.io
[VSCode]: https://code.visualstudio.com
[JSON editing in Visual Studio Code]: https://code.visualstudio.com/Docs/languages/json
[Ajv]: https://github.com/ajv-validator/ajv