open-index/open-npm huggingface dataset:
npm package: @himenon/ticktack
Description: Tool to measure execution time of CLI and JavaScript
Author: Himenon
Latest version: 0.1.2

# @himenon/ticktack

Tool to measure execution time of CLI and JavaScript.
It supports both the browser and NodeJS environments.

## Install

```bash
yarn global add @himenon/ticktack
```

## CLI

```ts
export TICKTACK_OUTPUT_PATH="performance.json"
export TICKTACK_NAME="my"

// Use environment settings
ticktack -c "sleep 2"

// Use argument settings
ticktack -n "sleepCommand" -o "ticktack.json" -c "sleep 5"
```

### Show current settings

```bash
$ ticktack -n "sleepCommand" -o "ticktack.json" -c "sleep 5" --show-log info,command  --show-settings
output file path : ticktack.json
name             : sleepCommand
command          : sleep 5
Show message type: info, command
```

## API

```ts
import * as Ticktack from "@himenon/ticktack";

const wait = async ms => new Promise(resolve => setTimeout(resolve, ms));
const perfWait = Ticktack.wrapAsync(wait, { name: "wait", label: "timer" });
await Promise.all([perfWait(1000), perfWait(500), perfWait(1200), perfWait(1300)]);
await Ticktack.getResult();
```

## Development

| scripts                   | description                                 |
| :------------------------ | :------------------------------------------ |
| `build`                   | typescript build and create proxy directory |
| `clean`                   | clean up                                    |
| `format:code`             | prettier                                    |
| `format:yarn:lock`        | yarn.lock deduplicate                       |
| `lerna:version:up`        | lerna version up                            |
| `test`                    | execute test:depcruise, test:jest           |
| `test:depcruise`          | dependency-cruiser's test                   |
| `test:jest`               | jest test                                   |
| `ts`                      | execute ts-node                             |
| `release:github:registry` | publish GitHub registry                     |
| `release:npm:registry`    | publish npm registry                        |

## Features

- [Proxy Directory](https://himenon.github.io/docs/javascript/proxy-directory-design-pattern/)

## Release

- Automatic version updates are performed when merged into the `default` branch.

## LICENCE

[@himenon/ticktack](https://github.com/Himenon/ticktack-js)・MIT
npm package: @himenon/ts-grpc-health-check
Description: Grpc Health Check Implements
Author: Himenon
Latest version: 1.3.10

# @himenon/ts-grpc-health-check

## Usage

```bash
npm i @himenon/ts-grpc-health-check
# or
pnpm i @himenon/ts-grpc-health-check
```

```ts
import health from "@himenon/ts-grpc-health-check";

const statusMap = {
  ServiceFoo: proto.grpc.health.v1.HealthCheckResponse.ServingStatus.SERVING,
  ServiceBar: proto.grpc.health.v1.HealthCheckResponse.ServingStatus.NOT_SERVING,
  "": proto.grpc.health.v1.HealthCheckResponse.ServingStatus.NOT_SERVING,
};

const healthImpl = health.createHealthServerImpl(statusMap);

// Add the service and implementation to your pre-existing gRPC-node server
server.addService(health.service, healthImpl);
```

- [grpc/grpc-node - grpc-health-check](https://github.com/grpc/grpc-node/tree/v1.12.4/packages/grpc-health-check)

## Development

```bash
pnpm i
# For Apple Silicon
npm_config_target_arch=x64 npm_config_arch=x64 pnpm i
```

## Release

- Automatic version updates are performed when merged into the `main` branch.

## LICENCE

[@Himenon/template-esm-js](https://github.com/Himenon/template-esm-js)・MIT