open-index/open-npm huggingface dataset:
npm package: @pheonixcoder/ink-confirm-input
Description: Confirmation input component for Ink
Author: Balwant Singh
Latest version: 1.0.3

# ink-confirm-input [![Build Status](https://travis-ci.org/kevva/ink-confirm-input.svg?branch=master)](https://travis-ci.org/kevva/ink-confirm-input)

> Confirmation input component for [Ink](https://github.com/vadimdemedes/ink)


## Install

```
$ npm install ink-confirm-input
```


## Usage

```js
const { h, render, Component } = require('ink');
const ConfirmInput = require('ink-confirm-input');

class UnicornQuestion extends Component {
	constructor() {
		super();
		this.handleChange = this.handleChange.bind(this);
		this.handleSubmit = this.handleSubmit.bind(this);
		this.state = {
			answer: null,
		};
	}

	handleChange(val) {
		console.log(`Change: ${val}`)
	}

	handleSubmit(val) {
        this.setState({ answer: val ? 'You love unicorns!' : 'You are heartless…' });
        
        setTimeout(() => {
            // eslint-disable-line unicorn/no-process-exit
            process.exit(0);
        }, 200);
	}

	render() {
		const {answer, input} = this.state;

		return (
			<div>
				<ConfirmInput
                    defaultValue="No"
                    externalSeparators="Parenthesis"
                    question="Do you like unicorns?"
					onChange={this.handleChange}
					onSubmit={this.handleSubmit}
				/>
				{answer && answer}
			</div>
		);
	}
}

render(<UnicornQuestion/>);
```


## API

### &lt;ConfirmInput/&gt;

#### question

Type: `string`

The message you want to show before asking the input.


#### defaultValue

Type: `enum(Yes, No)`

Default: `Yes`

The default value of the input. The default value is shown in UpperCase.

#### externalSeparators

Type: `enum(Nothing, Parenthesis, Brackets)`

Default: `Brackets`

The external separator that is shown around the Yes No options.

#### placeholder

Type: `string`

Text to display when `value` is empty.

#### onChange

Type: `Function`

Function to call when value updates. Returns a `string` with the input.

#### onSubmit

Type: `Function`

Function to call when user press <kbd>Enter</kbd>. Returns a `boolean` for the answer.


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)
npm package: @phessophissy/btc-prediction-market-sdk
Description: TypeScript SDK for Bitcoin Prediction Market
Author: phessophissy
Latest version: 1.1.2

# BTC Prediction Market SDK

TypeScript SDK for interacting with the Bitcoin-anchored prediction market on Stacks.

This package is aligned with the current `btc-prediction-market-v3` contract surface.

## Install

```bash
npm install @phessophissy/btc-prediction-market-sdk
```

## Quick Start

```ts
import { initializeMarketSDK } from "@phessophissy/btc-prediction-market-sdk";

const sdk = initializeMarketSDK(
  "YOUR_CONTRACT_ADDRESS",
  true,
  "btc-prediction-market-v3"
);

const marketCount = await sdk.getMarketCount();
const marketZero = await sdk.getMarket(0);
```

## Supported V3 Methods

### Market

- `createBinaryMarket(title, description, settlementBurnHeight, senderKey)`
- `getMarket(marketId)`
- `getMarketCount()`
- `getUserPosition(marketId, userAddress)`
- `getCurrentBurnHeight()`

### Owner / Admin

- `getOwner()`
- `getPendingOwner()`
- `getContractBalance()`
- `getTotalFeesCollected()`
- `isPaused()`
- `isEmergency()`
- `transferOwnership(newOwner, senderKey)`
- `acceptOwnership(senderKey)`
- `cancelOwnershipTransfer(senderKey)`
- `enableEmergencyMode(senderKey)`
- `withdrawFees(amountMicroStx, recipient, senderKey)`
- `emergencyWithdrawAll(senderKey)`
- `emergencyWithdraw(amountMicroStx, recipient, senderKey)`
- `setPlatformPaused(paused, senderKey)`

## Exports

- `MarketContractService`
- `initializeMarketSDK`
- V3 types from `src/types.ts`
- Input validators from `src/utils/validation-50.ts`

## Development

```bash
npm install
npm run build
npm test
```

## Publishing

The package publishes built artifacts from `dist/`.

```bash
npm run build
npm publish --access public
```

## License

MIT
npm package: @phi-ag/ifc-guid
Description: Convert IFC GUID
Latest version: 1.1.4

# @phi-ag/ifc-guid

[![Version](https://img.shields.io/npm/v/%40phi-ag%2Fifc-guid?style=for-the-badge&color=blue)](https://www.npmjs.com/package/@phi-ag/ifc-guid)
[![Coverage](https://img.shields.io/codecov/c/github/phi-ag/ifc-guid?style=for-the-badge)](https://app.codecov.io/github/phi-ag/ifc-guid)
[![Downloads](https://img.shields.io/npm/d18m/%40phi-ag%2Fifc-guid?style=for-the-badge)](https://www.npmjs.com/package/@phi-ag/ifc-guid)
[![Size](https://img.shields.io/npm/unpacked-size/%40phi-ag%2Fifc-guid?style=for-the-badge&label=size&color=lightgray)](https://www.npmjs.com/package/@phi-ag/ifc-guid)

Convert [IFC GUID](https://technical.buildingsmart.org/resources/ifcimplementationguidance/ifc-guid/)

## Usage

    pnpm add @phi-ag/ifc-guid

Alternatively just copy the [source code](src/index.ts) into your project.

### Example

```ts
import { fromIfcGuid, toIfcGuid } from "@phi-ag/ifc-guid";

toIfcGuid("1f41ae2a-fae2-482c-99a9-11070ec1df8f");
// => 0VGQug_k98B9cf4GSEmT_F

fromIfcGuid("01bhO9fsz_RxNh9a_y9jls");
// => 0196b609-a76f-7e6f-b5eb-264fbc26dbf6
```
npm package: @phi-util/tiny
Description: the tiny unilities package
Author: invalder
Latest version: 1.0.0-f

# @phi-util/tiny

Just a tiny utilities (I will update more once I'm not lazy)

## Install

```
$ npm install @phi-util/tiny
```

## Usage

```js
const utilities = require("@phi-util/tiny");

// Line Notification
// Send Line Notification to Line Group using Line Notify
// Please Read the Documentation from https://notify-bot.line.me/doc/en/
// Line Sticker, see https://developers.line.biz/en/docs/messaging-api/sticker-list/

utilities.lineNotify(
  <Line Notify Token>,
  <Message>,
  <Image Thumbnail URL>,
  <Image Fullsize URL>,
  <Image File>,
  <Sticker Package ID>,
  <Sticker ID>,
  <Notification Disabled>
  )

// if you would like to get comma, you can use <Number>.toLocaleString() instead
// Return String <Thai Number>
utilities.thaiNumber(<AnyNumber>);


//See you again when I'm not lazy
```