open-index/open-npm huggingface dataset:
npm package: @jescalan/ink-markdown
Description: Render markdown text using Ink
Author: Cameron Hunter
Latest version: 2.0.0

# ink-markdown [![Actions Status](https://github.com/cameronhunter/ink-markdown/workflows/Test/badge.svg)](https://github.com/cameronhunter/ink-markdown/actions)

> Render markdown text using [Ink](https://github.com/vadimdemedes/ink)

![Screenshot of ink-markdown](screenshot.png)

## Install

```
$ npm install ink-markdown
```

```
$ yarn add ink-markdown
```

## Usage

```js
import React from 'react';
import { render } from 'ink';
import Markdown from 'ink-markdown';
import dedent from 'dedent';

const text = dedent`
  # Hello

  This is **markdown** printed in the \`terminal\`
`;

render(<Markdown>{text}</Markdown>);
```

## API

### `<Markdown>`

Props are passed as options to
[`marked-terminal`](https://github.com/mikaelbr/marked-terminal#options).

## License

MIT © [Cameron Hunter](https://cameronhunter.co.uk)
npm package: @jesconstantine/react-scripts
Description: Configuration and scripts for Create React App.
Latest version: 1.1.3
Deprecated: Use @palantirnet/react-scripts instead

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebookincubator/create-react-app).<br>
Please refer to its documentation:

* [Getting Started](https://github.com/facebookincubator/create-react-app/blob/master/README.md#getting-started) – How to create a new app.
* [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md) – How to develop apps bootstrapped with Create React App.
npm package: @jesdavpet/booky
Description: Fluent interface for making custom bookmarklets.
Author: Jesse David Peterson
Latest version: 1.0.1

Booky - a fluid interface for creating bookmarklets
======================================================

Combine canned functions to easily generate custom JavaScript bookmarklets, without having to write them from scratch.

API Documentation
=================

Link generation using ```booky.Link()```
----------------------------------------

- ```baseUrl(string[])``` set the base URL for the generated link
- ```parameters(object[])``` adds query parameter key value pairs
- ```fragemnnt(string[])``` adds a fragment identifier for anchors

Example: automatically search for a highlighted term on a page:
```
booky.Link()
  .baseUrl('http://www.google.com/search')
  .parameters({ 'q': booky.SELECTED_TEXT })
  .inSameWindow();
```


Email generation using ```booky.Email()```:
-------------------------------------------

- ```.to(string[])``` adds a recipient email to the list of recipients
- ```.cc(string[])``` adds a recipient email to the carbon copy list
- ```.bcc(string[])``` adds a recipient to the blind carbon copy list
- ```.subject(string[])``` the collection of values to concatenate into the subject
- ```.body(string[])``` the collection of values to concatenate into the email body
- ```.inNewWindow()``` opens the mailto: link in a new browser window

Example: creating a boilerplate e-mail to share an excerpt from article:
```
booky.Email()
  .to('potus@us.gov')
  .cc(['flotues@us.gov', 'presidential.dog@us.gov'])
  .bcc(['news@cnn.com'])
  .subject(['Article: ', booky.TITLE])
  .body([
    'Dear Sir/Madam,',
    '\n',

    'Please read this interesting page: \"',
    booky.TITLE,
    ' by ',
    booky.AUTHOR
    '\" online at: ',
    Booky.URL,
    '\n',

    'Here\'s an excerpt: \"',
    booky.SELECTED_TEXT,
    '\"',
    "\n",

    'Yours, truly.'
  ])
  .inNewWindow();
```


Getting values from an HTML page using ```booky```
--------------------------------------------------

- ```AUTHOR()``` gets the author of the current page if present
- ```LAST_MODIFIED()``` gets the last modified date of the page
- ```SELECTED_TEXT()``` gets selected text on the page at the time of execution
- ```TITLE()``` gets the title of the HTML page
- ```URL()``` gets the URL of the HTML page
npm package: @jesdavpet/wtf
Description: Utility library simplifying type detection and comparison.
Author: Jesse David Peterson
Latest version: 1.1.0

Type evaluation and comparison with Wtf.js
==========================================

  - Side steps JavaScript's inconsistent `typeof` and `instanceof` operators
  - Dependency free, and ultra lightweight at 0.3kb (minified)

JavaScript's native `typeof` operator can be awkward, it's one of the language's warts. Take for example `typeof null`, which one would expect to return `"Null"`, but is actually `"Object"`! Unfortunately `instanceof` is even less helpful than `typeof`.

This can lead to unnecessarily complex (and buggy) comparison statements.
*Enter Wtf.js to the rescue...*


Using Wtf.js type evaluation and predicates
-------------------------------------------

Predefined default types will return `true` / `false` indicating if the (optional) argument passed was of that type -- if no argument is passed, the type string for that type is returned instead:
  - `Wtf.ARRAY([thing])`
  - `Wtf.FUNCTION([thing])`
  - `Wtf.NULL([thing])`
  - `Wtf.NUMBER([thing])`
  - `Wtf.OBJECT([thing])`
  - `Wtf.STRING([thing])`
  - `Wtf.UNDEFINED([thing])`

Therefore, you can use these functions either as predicates or constants.

Test for an array type:
```
if (Wtf.ARRAY(x)) {
  // etc.
}
```

Display the type of an unknown object for debugging: `console.log(Wtf.type(thing))`

Handling a function argument which may be one of a variety of known types:
```
switch (Wtf.type(thing)) {
    case Wtf.STRING() : // Handle string case
        break;
    case Wtf.NUMBER() : // Handle number case
        break;
    case Wtf.ARRAY() : // Handle array case
        break;
    // etc.
}
```

Since custom objects / classes will evaluate as a Wtf.OBJECT(), the use of `instanceof` to narrow down the object's sub-type base on constructor as a second step.
```
if (Wtf.OBJECT(x)) {
  if (x instanceof FancyClass) doFancyThings();
  // etc.
}
```


On **not** using Wtf.js
-----------------------

Common libraries such as: jQuery, Underscore or Lodash, etc. include type helper functions that accomplish the same thing -- use those instead.

**NOTE:** *Wtf.js is a reinvention of a very small wheel for a size optimized -- and, therefore, dependency-free -- JavaScript project. If that's your use case, then enjoy!*
npm package: @jesehl/dragonpay-sdk
Description: SDK for easy integration with Dragonpay payment services
Latest version: 1.0.0

# Dragonpay SDK - Minimal Guide 🐉

## Install
```bash
npm install @dragonpay/sdk
```

## Usage

### Create Payment Link
```javascript
const { DragonpaySDK } = require('@dragonpay/sdk');

const dp = new DragonpaySDK({
  merchantId: 'YOUR_ID',
  secretKey: 'YOUR_KEY',
  environment: 'test'
});

// Create payment
dp.createInvoice({
  amount: 1000,
  currency: 'PHP',
  description: 'Test item',
  email: 'buyer@email.com',
  txnId: 'ORDER-123'
})
.then(result => console.log('Payment URL:', result.url))
.catch(error => console.log('Error:', error));
```

### Check Payment Status
```javascript
// Use the refNo you got from createInvoice
dp.getInvoiceStatus('REF-123')
  .then(status => console.log('Status:', status.status))
  .catch(error => console.log('Error:', error));
```

### Payment Status Codes
- `S` = Success
- `F` = Failed
- `P` = Pending
- `U` = Unknown

## Common Questions 🤔

### What are the possible payment statuses?
- `S` = Success (Yay! Payment received)
- `F` = Failed (Something went wrong)
- `P` = Pending (Still waiting for payment)
- `U` = Unknown (Try checking again)
- `R` = Refunded
- `K` = Chargeback
- `V` = Voided
- `A` = Authorized

### How do I go live?
1. Test everything using `environment: 'test'`
2. When ready, get your production credentials from Dragonpay
3. Change to `environment: 'production'`
4. That's it!

### What currencies are supported?
Right now, only PHP (Philippine Peso) is supported.

## Need Help? 🆘

- Check Dragonpay's website: https://dragonpay.ph
- Email them at: support@dragonpay.ph
- Or check their API docs for more details

## Example Project 📝

Here's a complete example you can copy-paste:

```javascript
const { DragonpaySDK } = require('@dragonpay/sdk');

// Setup
const dragonpay = new DragonpaySDK({
  merchantId: 'YOUR_MERCHANT_ID',
  secretKey: 'YOUR_SECRET_KEY',
  environment: 'test'
});

// Create a payment function
async function sellSomething() {
  try {
    // 1. Create the payment
    const payment = await dragonpay.createInvoice({
      amount: 1000,
      currency: 'PHP',
      description: 'Awesome Product',
      email: 'customer@email.com',
      txnId: `ORDER-${Date.now()}`  // Create unique order ID
    });

    console.log('✅ Payment Created!');
    console.log('Send this link to customer:', payment.url);
    console.log('Reference Number:', payment.refNo);

    // 2. Check its status after a while
    setTimeout(async () => {
      const status = await dragonpay.getInvoiceStatus(payment.refNo);
      console.log('Payment Status:', status.status);
    }, 5000);  // Wait 5 seconds before checking

  } catch (error) {
    console.log('❌ Error:', error.message);
  }
}

// Run it!
sellSomething();
```

That's all you need to know! Happy coding! 🎉
npm package: @jesi-rgb/uncharted
Description: introducing Uncharted: a new natively reactive, composable and typesafe chart library + tooling for #svelte5.
Latest version: 0.0.23

# Uncharted

introducing Uncharted: a new natively reactive, composable and typesafe chart library + tooling for #svelte5. 

```svelte
<script lang="ts">
	import { Chart } from '$lib/index.js';
	interface DataPoint {
		category: string;
		value: number;
	}

	function generateRandomData(
		categories: number = 26,
		minValue: number = 0,
		maxValue: number = 500
	): DataPoint[] {
		return Array.from({ length: categories }, (_, i) => ({
			category: String.fromCharCode(65 + i),
			value: Math.floor(Math.random() * (maxValue - minValue + 1)) + minValue
		}));
	}

	let data = $state(generateRandomData());
	setInterval(() => {
		data = generateRandomData();
	}, 1000);
</script>

<div class="mb-10">
	<h2 class="font-bold">Uncharted</h2>
	<p class="text-sm">Composable, reactive, and typesafe charts, native to svelte 5</p>
</div>

<Chart.Root {data} margin={{ left: 50, top: 30, right: 30 }}>
	<Chart.AxesContainer xKey="category" yKey="value">
		<Chart.Axes.Y />
		<Chart.Axes.X />
		<Chart.Series.Bar />
	</Chart.AxesContainer>
</Chart.Root>
```

bringing inspiration from libraries like Bits UI where components are built in "layers", Uncharted allows to bring in whatever layers you want for your chart, as well as allowing full customization of every layer. 

want a grid? you have it. want tooltips? you have'em. don't want X axis? just don't include them.

want to make a custom and reusable tooltip? make a "MyTooltip.svelte" component and use that instead. sky's the limit. peek into the uncharted!
npm package: @jesobreira/babel-plugin-transform-currency-operators
Description: https://github.com/scurker/babel-plugin-transform-currency-operators
Author: Jason Wilson
Latest version: 1.0.2

# babel-plugin-transform-currency-operators [![Build Status](https://travis-ci.org/scurker/babel-plugin-transform-currency-operators.svg?branch=master)](https://travis-ci.org/scurker/babel-plugin-transform-currency-operators) [![Coverage Status](https://coveralls.io/repos/github/scurker/babel-plugin-transform-currency-operators/badge.svg?branch=master)](https://coveralls.io/github/scurker/babel-plugin-transform-currency-operators?branch=master) [![npm](https://img.shields.io/npm/v/babel-plugin-transform-currency-operators.svg?style=flat)](https://www.npmjs.com/package/babel-plugin-transform-currency-operators)

> An experimental babel plugin for transforming [currency.js](https://github.com/scurker/currency.js) operators.

## Example

**In**

```javascript
import currency from 'currency.js';

var currency1 = currency(1.23);
var currency2 = currency1 + 4.56;
var currency3 = currency2 - 4.56;
var currency4 = currency3 * 2;
var currency5 = currency4 / 4;
var currency6 = currency1 + currency2;

var MultiDecimal = value => currency(value, { decimals: 3 });
var currency7 = MultiDecimal(1.234) + 5.678;

if(currency1 < currency2) { ... }
if(currency1 > currency2) { ... }
if(currency1 === 1.23) { ... }
```

**Out**

```javascript
import currency from 'currency.js';

var currency1 = currency(1.23);
var currency2 = currency1.add(4.56);
var currency3 = currency2.subtract(4.56);
var currency4 = currency3.multiply(2);
var currency5 = currency4.divide(4);
var currency6 = currency1.add(currency2);

var MultiDecimal = value => currency(value, { decimals: 3 });
var currency7 = MultiDecimal(1.234).add(5.678);

if(currency1.value < currency2.value) { ... }
if(currency1.value > currency2.value) { ... }
if(currency1.value === 1.23) { ... }
```

## Installation

With [npm](https://www.npmjs.com/):

```sh
npm install --save-dev babel-plugin-transform-currency-operators
```

With [yarn](https://yarnpkg.com):

```sh
yarn install babel-plugin-transform-currency-operators --dev
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "plugins": ["transform-currency-operators"]
}
```

### Via CLI

```sh
babel --plugins transform-currency-operators
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["transform-currency-operators"]
});
```

## Advanced Usage

If you have a need to customize and export currency settings as a module, you can include the path to your currency (relative from the root of your project) in your `.babelrc` plugin configuration to transform those imported module's operator along with any `currency.js` imports:

> File in your project: `path/to/custom/currency.js`

```javascript
import currency from 'currency.js';

export default function myCustomCurrencyDefaults(value) {
  return currency(value, { symbol: '€', ...otherOptions });
}
```

### `.babelrc`

```javascript
{
  "plugins": ["transform-currency-operators", ['./path/to/custom/currency']]
}
```

## License

[MIT](/license)
npm package: @jesobreira/is-disposable-email
Description: Determine if an email is a [disposable email address](http://en.wikipedia.org/wiki/Disposable_email_address) like `joe@mailinator.com`. You can use it to detect or block disposable accounts in your signup process.
Latest version: 0.0.2

# is-disposable-email

  Determine if an email is a [disposable email address](http://en.wikipedia.org/wiki/Disposable_email_address) like `joe@mailinator.com`. You can use it to detect or block disposable accounts in your signup process.

## Example

```js
var disposable = require('is-disposable-email');

disposable('ilya@segment.io'); // false
disposable('mike@gmail.com'); // false
disposable('fake@mailinator.com'); // true
```

## Installation
  
```
$ npm install is-disposable-email
```
```
$ component install jesobreira/is-disposable-email
```

## Licence

```
WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|
```
npm package: @jesobreira/sequelize-auto-migrations
Description: Sequelize migrations generator & runner
Author: Michael Maslov
Latest version: 1.0.4

# sequelize-auto-migrations

Migration generator &amp; runner for sequelize

This package provide two tools:
* `makemigration` - tool for create new migrations
* `runmigration` - tool for apply created by first tool migrations

## Install
`npm install @jesobreira/sequelize-lazy-migrations`

## Usage
* Init sequelize, with sequelize-cli, using `sequelize init`
* Create your models
* Create initial migration - run:

`makemigration --name <migration name>`
* Change models and run it again, model difference will be saved to the next migration

To preview new migration, without any changes, you can run:

`makemigration --preview`

`makemigration` tool creates `_current.json` file in `migrations` dir, that is used to calculate difference to the next migration. Do not remove it!

To create and then execute migration, use:
`makemigration --name <name> -x`

## Executing migrations
* There is simple command to perform all created migrations (from selected revision):

`runmigration`
* To select a revision, use `--rev <x>`
* If migration fails, you can continue, use `--pos <x>`
* To prevent execution next migrations, use `--one`


For more information, use `makemigration --help`, `runmigration --help`

## TODO:

* Unit tests
* Migration action sorting procedure need some fixes. When many foreign keys in tables, there is a bug with action order. Now, please check it manually (`--preview` option)
* Need to check (and maybe fix) field types: `BLOB`, `RANGE`, `ARRAY`, `GEOMETRY`, `GEOGRAPHY`
* Downgrade is not supported, add it
* This module tested with postgresql (I use it with my projects). Test with mysql and sqlite.
npm package: @jesobreira/stackup
Description: Long stack traces based on async listeners
Author: Jacob Groundwater
Latest version: 1.0.2

# Stackup

Stackup is a long stack trace module build off of async listeners.

## Install

```
npm install --save stackup
```

Require the module at the start of your application:

```
require('stackup');
```

Errors that propagate to `uncaughtException` will magically turn into long stack traces.

## Example Output

```
Error: Something went wrong
    at C (/home/jacob/stackup/demo.js:28:13)
    at process._tickCallback (node.js:415:13)
    ---- async ----
    at B (/home/jacob/stackup/demo.js:24:13)
    at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
    ---- async ----
    at global.setTimeout (node.js:174:27)
    at Object.A (/home/jacob/stackup/demo.js:20:3)
    at processImmediate [as _immediateCallback] (timers.js:330:15)
    ---- async ----
    at global.setImmediate (node.js:194:29)
    at Object.<anonymous> (/home/jacob/stackup/demo.js:13:1)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3
```

## Caveats

I haven't really tested this yet.

- it may die horribly if you throw a non-object
- (@jesobreira) this is a fork that only removes the "main" field from package.json to hide the warning in the console
npm package: @jeson.xk/koa-logger
Description: Logging middleware for koa (forked from koajs/logger)
Author: jesonxie
Latest version: 4.1.2



[Koa logger]([https://github.com/koajs/logger]) is unmanned, and this project has been optimized based on Koa logger. The following adjustments have been made:
- pass ctx to transpoter. Please see Transporter below for usage instructions

# koa-logger

[![npm version][npm-image]][npm-url]

 Development style logger middleware for [koa](https://github.com/koajs/koa). Compatible with [request-received](https://github.com/cabinjs/request-received).

```
<-- GET /
--> GET / 200 835ms 746b
<-- GET /
--> GET / 200 960ms 1.9kb
<-- GET /users
--> GET /users 200 357ms 922b
<-- GET /users?page=2
--> GET /users?page=2 200 466ms 4.66kb
```

## Installation

```js
$ npm i @jeson.xk/koa-logger
```

## Example

```js
const logger = require('@jeson.xk/koa-logger')
const Koa = require('koa')

const app = new Koa()
app.use(logger())
```

## Notes

  Recommended that you `.use()` this middleware near the top
  to "wrap" all subsequent middleware.

## Use Custom Transporter

```js
const logger = require('@jeson.xk/koa-logger')
const Koa = require('koa')

const app = new Koa()
app.use(logger((str, args, ctx) => {
  // redirect koa logger to other output pipe
  // default is process.stdout(by console.log function)
}))
```
or
```js
app.use(logger({
  transporter: (str, args, ctx) => {
    // ...
  }
}))
```

  Param `str` is output string with ANSI Color, and you can get pure text with other modules like `strip-ansi`  
  Param `args` is a array by `[format, method, url, status, time, length]`
  Param `ctx` is the app context

## License

  MIT

[npm-image]: https://img.shields.io/npm/v/koa-logger.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/koa-logger