open-index/open-npm huggingface dataset:
npm package: @nifty-uploader/web-components
Description: Webcomponents for nifty-uploader
Author: Marlon Lückert
Latest version: 0.0.8

![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)

# Nifty Uploader - Web Components

## Using the components

### Script tag

- Put the script tag `<script src='https://unpkg.com/@nifty-uploader/web-components'></script>` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### Node Modules
- Run `npm install @nifty-uploader/web-components --save`
- Put the script tag `<script src='node_modules/@nifty-uploader/web-components/dist/niftyuploader.js'></script>` in the head of your index.html
- Then you can use the element anywhere in your template, JSX, html etc

### Angular
- Run `npm install @nifty-uploader/web-components --save`
- Include the `CUSTOM_ELEMENTS_SCHEMA` in the modules that use the components
- Call `defineCustomElements(window)` from `main.ts` (or some other appropriate place)

module.ts:
```js
import { BrowserModule } from '@angular/platform-browser';
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

import { AppComponent } from './app.component';
import { SharedModule } from './shared/shared.module';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, FormsModule, SharedModule],
  bootstrap: [AppComponent],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
```
main.ts:
```js
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

import { defineCustomElements } from '@nifty-uploader/web-components/dist/loader'

if (environment.production) {
  enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
  .catch(err => console.error(err));

defineCustomElements(window);
```
npm package: @nifty.store/aws-opensearch-connector
Description: A tiny Amazon Signature Version 4 connection class for @opensearch-project/opensearch, for compatibility with AWS OpenSearch and IAM authentication.
Author: Jan Jaan
Latest version: 11.0.0

# aws-elasticsearch-connector

[![Build Status](https://travis-ci.org/compwright/aws-elasticsearch-connector.png?branch=master)](https://travis-ci.org/compwright/aws-elasticsearch-connector)
[![Code Climate](https://codeclimate.com/github/compwright/aws-elasticsearch-connector/badges/gpa.svg)](https://codeclimate.com/github/compwright/aws-elasticsearch-connector)
[![Test Coverage](https://codeclimate.com/github/compwright/aws-elasticsearch-connector/badges/coverage.svg)](https://codeclimate.com/github/compwright/aws-elasticsearch-connector/coverage)
[![Dependency Status](https://img.shields.io/david/compwright/aws-elasticsearch-connector.svg?style=flat-square)](https://david-dm.org/compwright/aws-elasticsearch-connector)
[![Download Status](https://img.shields.io/npm/dm/aws-elasticsearch-connector.svg?style=flat-square)](https://www.npmjs.com/package/aws-elasticsearch-connector)

A tiny [Amazon Signature Version 4](https://www.npmjs.com/package/aws4) connection class for the official [Elasticsearch Node.js client](https://www.npmjs.com/package/elasticsearch), for compatibility with AWS Elasticsearch and IAM authentication.

Supports AWS SDK global or specific configuration instances (AWS.Config), including asyncronous credentials from IAM roles and credential refreshing.

## Installation

```bash
npm install --save aws-elasticsearch-connector @elastic/elasticsearch aws-sdk
```

## Example usage

### Using global configuration

```javascript
const { Client } = require('@elastic/elasticsearch')
const AWS = require('aws-sdk')
const createAwsElasticsearchConnector = require('aws-elasticsearch-connector')

// (Optional) load profile credentials from file
AWS.config.update({
  profile: 'my-profile'
})

const client = new Client({
  ...createAwsElasticsearchConnector(AWS.config),
  node: 'https://my-elasticsearch-cluster.us-east-1.es.amazonaws.com'
})
```

### Using specific configuration

```javascript
const { Client } = require('@elastic/elasticsearch')
const AWS = require('aws-sdk')
const createAwsElasticsearchConnector = require('aws-elasticsearch-connector')

const awsConfig = new AWS.Config({
  // Your credentials and settings here, see
  // https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Config.html#constructor-property
})

const client = new Client({
  ...createAwsElasticsearchConnector(awsConfig),
  node: 'https://my-elasticsearch-cluster.us-east-1.es.amazonaws.com'
})
````

## Test

```bash
npm test

# Run integration tests against a real endpoint
AWS_PROFILE=your-profile npm run test:integration -- \
  --endpoint https://my-elasticsearch-cluster.us-east-1.es.amazonaws.com
```
npm package: @nifty10m/mapbox-gl-draw-mode-collection
Description: A custom mode collection for MapboxGL Draw
Author: Sven Röttering
Latest version: 1.0.2

Mapbox GL Draw Mode Collection
==========================

This mode collection contains some useful modes for splitting and transforming polygons.

The implementation is pretty basic and currently fits 10M's internal needs. If you find any bugs or want to improve something, 
feel free to submit a PR or open an issue.

Demo: https://nifty10m.github.io/mapbox-gl-draw-mode-collection/

# StampMode

This mode takes a feature collection containing polygons and allows you to draw a polygon (similar to the 'draw_polygon' mode) which will
 be 
used to slice the input polygons into pieces.

# TransformMode

This mode is intended to fine tune the resulting geometries from the StampMode. It takes an array of feature IDs (= result of adding 
features to draw) and an optional polygon boundary and allows you to edit (similar to the 'direct_select' mode) all the vertices and 
midpoints that do not touch the boundary (or all vertices if there is no boundary). There is a built in move validation which tests the 
resulting polygons against the following three rules:

1. there must be no kinks
2. no holes must be moved outside its polygon
3. polygons must have the correct orientation, i.e. outer rings counter-clockwise and inner rings clockwise

Installation
------------

### npm

```
npm install @nifty10m/mapbox-gl-draw-mode-collection

import { StampMode, TransformMode } from '@nifty10m/mapbox-gl-draw-mode-collection';
```

### browser

Get the js file from the `dist/` folder and include in your project.

```
<script type="text/javascript" src="mode-collection.min.js"></script>
```

## Usage

Ensure you are loading draw onto your map as a control before triggering `changeMode`.

```
var draw = new MapboxDraw(
 modes: Object.assign(
   'stamp': ModeCollection.StampMode,
   'transform': ModeCollection.TransformMode,
 }, MapboxDraw.modes)
});

map.addControl(draw);

/*
Activate the stamp mode with a base feature collection that should be stamped/split with a hand drawn polygon
*/

draw.changeMode('stamp', {
  baseFeatureCollection: someFeatureCollection
});

/*
Activate the transform mode with an array of feature IDs that are added to draw
*/

var featureIds = draw.set(someFeatureCollection);
draw.changeMode('transform', {
  featureIds: featureIds,
  boundary: someBoundary // optional,
});
```

## Events

### StampMode

* draw.stamped: emits the resulting split features as polygons
* draw.error: emits if an error occured during stamp mode

### TransformMode

* draw.transform: emits all features that are added to draw after the transformation was applied
npm package: @niftyapes/sdk
Description: Niftyapes SDK
Author: NiftyApes
Latest version: 1.0.59

# NiftyApes SDK

The NiftyApes SDK is a developer toolkit for interacting with the NiftyApes Seller Financing protocols.

See our [documentation](https://niftyapes.readme.io/docs) for more info.

## Installing the NiftyApes SDK

For instructions on getting started, see the [SDK Installation](https://niftyapes.readme.io/reference/getting-started) page in our docs.

## Use Cases

Check out [ArtistFinancing.xyz](https://artistfinancing.xyz/) where collectors can purchase art with flexible terms from premium artists!
npm package: @niftyers/next-ui
Description: A simple, open source, accessible nextjs ui components on top of talwindcss.
Author: Lambert Cadalzo
Latest version: 0.0.2

# niftyers-next-ui

> Lightweight, Next.js-ready UI components built with Tailwind CSS.  
> Designed for speed, simplicity, and beautiful defaults.

---

## ✨ Features

- Built for **Next.js** (but works in any React project)
- **TailwindCSS** first — minimal extra styles
- **Lightweight**, **tree-shakable** components
- Open-source and MIT licensed

---

## 🚀 Installation

First, make sure you have **TailwindCSS** set up in your Next.js project.  
If not, you can follow the [Tailwind Next.js installation guide](https://tailwindcss.com/docs/guides/nextjs).

Then, install `@niftyers/next-ui`:

```bash
npm install @niftyers/next-ui
```

## ❤️ Contributing

Pull requests, feature ideas, and bug reports are welcome!

Please make sure your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard:

- `feat`: A new feature
- `fix`: A bug fix
- `docs`: Documentation changes
- `chore`: Tooling or maintenance updates
- `style`: Changes that do not affect meaning (formatting, whitespace, etc.)
- `refactor`: Code changes that neither fix a bug nor add a feature
- `perf`: A code change that improves performance
- `test`: Adding missing tests or fixing existing tests

## 🙌 Acknowledgments

Main Contributor:

- **[Lambert Cadalzo](https://github.com/cadalzolc)** – Creator & Maintainer of @niftyers/next-ui
npm package: @niftykit/components
Description: NiftyKit's Web Components Collection
Author: NiftyKit
Latest version: 0.0.28

![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D&colorA=16161d&style=flat-square)

# NiftyKit Web Components

NiftyKit's Web Components Collection

## Installation

1. Install via npm

```bash
npm install @niftykit/components
```

2. Import via CDN

```html
<script type='module' src='https://unpkg.com/@niftykit/components/dist/components/components.esm.js'></script>
```

## Example

```html
<script type='module' src='https://unpkg.com/@niftykit/components/dist/components/components.esm.js'></script>
<!-- You can use the element anywhere in your template, JSX, HTML, etc -->
<nk-dropkit apikey="YOUR-SDK-KEY" />
```

* See it live [here](https://jovial-thompson-aa5239.netlify.app/)
* See the source code [here](/src/index.html)
* Edit it on [Codepen](https://codepen.io/jcurbelo/pen/NWwoPYe)
npm package: @niftykit/diamond
Description: NiftyKit Diamond SDK
Author: NiftyKit
Latest version: 0.3.1

# Diamond SDK

NiftyKit Diamond SDK Library.

## Installation

Install via npm or yarn

```bash
# with npm
npm install @niftykit/diamond

# with yarn
yarn add @niftykit/diamond
```

Or use it via CDN

```html
<script async src='https://unpkg.com/@niftykit/diamond/dist/umd/index.js'></script>
```

## How to use

### Drop Collection

```typescript
// using ethers.js
import { ethers } from 'ethers';
import Diamond from '@niftykit/diamond';

const provider = new ethers.providers.Web3Provider(window.ethereum, 'any');
await provider.send('eth_requestAccounts', []);
const signer = provider.getSigner();

const diamond = await Diamond.create(signer, 'YOUR-SDK-KEY');

// minter
const recipient = await signer.getAddress();

// get current price
const price = await diamond.apps.drop.price();

// mint 1 NFT
const tx = await state.diamond.apps.drop.mintTo(recipient, 1, {
  value: price,
});

await tx.wait();

```

### Edition Collection

```typescript
// using ethers.js
import { ethers } from 'ethers';
import Diamond from '@niftykit/diamond';

const provider = new ethers.providers.Web3Provider(window.ethereum, 'any');
await provider.send('eth_requestAccounts', []);
const signer = provider.getSigner();

const diamond = await Diamond.create(signer, 'YOUR-SDK-KEY');

// edition id
const editionId = 0; // change this to your edition id

// get edition price
const price = await diamond.apps.edition.getEditionPrice(editionId);

// minter
const recipient = await signer.getAddress();

// check presale (if any)
const verify = await state.diamond.verifyForEdition(
  recipient,
  editionId
);

// mint 1 NFT
const tx = await diamond.apps.edition.mintEdition(
  recipient,
  editionId,
  1,
  verify?.proof ?? [],
  {
    value: price,
  }
);

await tx.wait();

```
npm package: @niftykit/dropkit
Description: NiftyKit DropKit SDK
Author: NiftyKit
Latest version: 0.3.1

# DropKit SDK

NiftyKit DropKit SDK Library.

## Installation

Install via npm or yarn

```bash
# with npm
npm install @niftykit/dropkit

# with yarn
yarn add @niftykit/dropkit
```

Or use it via CDN

```html
<script async src='https://unpkg.com/@niftykit/dropkit/dist/umd/index.js'></script>
```

## How to use

```typescript
// using ethers.js
import { ethers } from 'ethers';
import DropKit from '@niftykit/dropkit';

const provider = new ethers.providers.Web3Provider(window.ethereum, 'any');
await provider.send('eth_requestAccounts', []);
const signer = provider.getSigner();

const drop = await DropKit.create(signer, 'YOUR-SDK-KEY');

// mint 1 NFT
await drop.mint(1);

```

## API

```typescript
class DropKit {
    contract: DropCollection;
    signerOrProvider: Signer | Provider;
    dropCollectionId: string;
    isDev?: boolean;
    chainId?: number;
    networkName?: string;
    static create(signerOrProvider: Signer | Provider, key: string, isDev?: boolean): Promise<DropKit | null>;
    static getCollectionData(key: string, isDev?: boolean): Promise<DropApiResponse & ErrorApiResponse>;
    price(): Promise<BigNumber>;
    maxAmount(): Promise<BigNumber>;
    maxPerMint(): Promise<BigNumber>;
    maxPerWallet(): Promise<BigNumber>;
    totalSupply(): Promise<BigNumber>;
    saleActive(): Promise<boolean>;
    presaleActive(): Promise<boolean>;
    generateProof(address: string): Promise<ProofApiResponse & ErrorApiResponse>;
    mint(quantity: number): Promise<ContractReceipt | null>;
}
```
npm package: @niftykit/redeemable
Description: NiftyKit Redeemable SDK
Author: NiftyKit
Latest version: 0.3.1

# Redeemable SDK

NiftyKit Redeemable SDK Library.

## Installation

Install via npm or yarn

```bash
# with npm
npm install @niftykit/redeemable

# with yarn
yarn add @niftykit/redeemable
```

Or use it via CDN

```html
<script async src='https://unpkg.com/@niftykit/redeemable/dist/umd/index.js'></script>
```

## How to use

Ensure you have your redeemable `tokenId` and your `signature`. Once you generate your redeemable link from NiiftyKit, you can get these values from your URL.

Example URL:

```bash
https://app.niftykit.com/collections/your-collection/redeemables/1/0x5f635ae4051272d477a6ebbcdfd32d2d55a300004512c01873315194d853f15b29087799de88530240a0a0f17f5e9f8d6881b4b248ebc83c06ce7c33b9ef01971b
```

In this case the `tokenId` is `1` and the signature is

```bash
0x5f635ae4051272d477a6ebbcdfd32d2d55a300004512c01873315194d853f15b29087799de88530240a0a0f17f5e9f8d6881b4b248ebc83c06ce7c33b9ef01971b
```

> Note: if you re-generate your redeemable link, you will get a new `signature` and need to update your code.

```typescript
// using ethers.js
import { ethers } from 'ethers';
import Redeemable from '@niftykit/redeemable';

const provider = new ethers.providers.Web3Provider(window.ethereum, 'any');
await provider.send('eth_requestAccounts', []);
const signer = provider.getSigner();

const tokenId = 1;
const signature = '0x5f635ae4051272d477a6ebbcdfd32d2d55a300004512c01873315194d853f15b29087799de88530240a0a0f17f5e9f8d6881b4b248ebc83c06ce7c33b9ef01971b';

const drop = await Redeemable.create(signer, contractAddress);

// get NFT
const nft = await drop.getRedeemable(tokenId);

// redeem 1 NFT
const trx = await drop.redeem(tokenId, 1, signature);
await trx.wait();

// burn NFT
await drop.burn(tokenId);

```

## API

```typescript
class Redeemable {
    static create(signerOrProvider: Signer | Provider, contractAddress: string): Promise<Redeemable | null>;
    getRedeemable(tokenId: number): Promise<RedeemableData>;
    redeem(tokenId: number, quantity: number, signature: string): Promise<ContractTransaction>;
    burn(tokenId: number): Promise<ContractTransaction>;
}

interface RedeemableData {
  index: number;
  tokenURI: string;
  price: ethers.BigNumber;
  maxAmount: number;
  maxPerWallet: number;
  maxPerMint: number;
  redeemedCount: number;
  merkleRoot: string;
  active: boolean;
  nonce: ethers.BigNumber;
}
```
npm package: @niftylearning/exceljs
Description: Fixes the problem with writing a file using streams and not using RAM based on 'exeljs'
Author: Nifty Learning
Latest version: 1.0.0

# ExcelJS

This is a fork of the "exceljs" package, which fixes the problem with writing a file using streams and not using RAM.
It solves the problem of writing large exel files
<a href="https://github.com/exceljs/exceljs">Original repo</a>

# Installation

```shell
npm install @niftylearning/exceljs
```

# Whats new!
To use streams corractly just write:

```javascript
import * as fs from 'fs';
import { stream } from 'exceljs';

const output_file_name = "/test.xlsx";

const writeStream = fs.createWriteStream(output_file_name, { flags: 'w' });
const wb = new stream.xlsx.WorkbookWriter({ stream: writeStream });
const worksheet = wb.addWorksheet("test");

const headers = Array.from({length: 256}, (_, i) => i + 1).map((i) => 'test' + i);

for (let i = 0; i < 100000; i++) {
  const row = headers.map((header) => header + '|' + i);
  await worksheet.addRow(row).commit(); // This raw will be immediately written to disk and will not clog RAM.
}

await worksheet.commit(); // This is not necessary because await wb.commit() is used, but you can also write to disk not raw by raw, but worksheet by worksheet.
await wb.commit();
```
npm package: @niftylettuce/is-retry-allowed
Description: Is retry allowed for Error?
Author: Vsevolod Strukchinsky
Latest version: 1.1.0

# is-retry-allowed [![Build Status](https://travis-ci.org/floatdrop/is-retry-allowed.svg?branch=master)](https://travis-ci.org/floatdrop/is-retry-allowed)

Is retry allowed for Error?


## Install

```
$ npm install --save is-retry-allowed
```


## Usage

```js
const isRetryAllowed = require('is-retry-allowed');

isRetryAllowed({code: 'ETIMEDOUT'});
//=> true

isRetryAllowed({code: 'ENOTFOUND'});
//=> false

isRetryAllowed({});
//=> true
```


## API

### isRetryAllowed(error)

#### error

Type: `object`

Object with `code` property, which will be used to determine retry.


## License

MIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)
npm package: @niftylettuce/pug-runtime
Description: The runtime components for the pug templating language
Author: ForbesLindesay
Latest version: 2.0.4

# pug-runtime

The runtime components for the pug templating language

[![Build Status](https://img.shields.io/travis/pugjs/pug-runtime/master.svg)](https://travis-ci.org/pugjs/pug-runtime)
[![Dependency Status](https://img.shields.io/david/pugjs/pug-runtime.svg)](https://david-dm.org/pugjs/pug-runtime)
[![NPM version](https://img.shields.io/npm/v/pug-runtime.svg)](https://www.npmjs.org/package/pug-runtime)

## Installation

    npm install pug-runtime

## Usage


You can call runtime methods directly using `runtime.method`.  This is particularly useful when compiling to deal with things that are already known at compile time.

```js
var runtime = require('pug-runtime');

assert(runtime.attr('foo', 'bar', true, true) === ' foo="bar"');
```

You can also build a string with a given list of functions available as `pug_method` by calling `build(arrayOfMethods)`.  This is useful for inlining runtime functions within the compiled templates.

```js
var build = require('pug-runtime/build');
var src = build(['attr']);

var attr = Function('', src + ';return pug_attr;')();
assert(attr('foo', 'bar', true, true) === ' foo="bar"');
```

When testing code compiled for the browser in Node.js, it is necessary to make the runtime available. To do so, one can use `require('pug-runtime/wrap')`:

```js
var pug = require('pug');
var wrap = require('pug-runtime/wrap');

var pugSrc = 'p= content';
// By default compileClient automatically embeds the needed runtime functions,
// rendering this module useless.
var compiledCode = pug.compileClient(pugSrc, {
  externalRuntime: true
});
//=> 'function template (locals) { ... pug.escape() ... }'

var templateFunc = wrap(compiledCode);
templateFunc({content: 'Hey!'});
//=> '<p>Hey!</p>'

// Change template function name to 'heyTemplate'
compiledCode = pug.compileClient(pugSrc, {
  externalRuntime: true,
  name: 'heyTemplate'
});
//=> 'function heyTemplate (locals) { ... }'

templateFunc = wrap(compiledCode, 'heyTemplate');
templateFunc({content: 'Hey!'});
//=> '<p>Hey!</p>'
```


## License

  MIT
npm package: @niftylogic/logger
Description: A simple, environment-driven logger, suitable for microservice architectures inside of containers.
Author: James Hunt
Latest version: 1.0.0

# js-logger

A stupidly simple, console-only logger with message timestamping,
configurable identity, and standard syslog-inspired logging
levels.

To use it, require the library and call the functions on the
exported object:

```js
const logger = require('@niftylogic/logger');

logger.show('all')
      .as('an-example');

logger.debug('this is a debug message');
logger.info('this is an info message');
logger.warn('this is a warning message');
logger.error('this is an error message');
logger.info('here is an %O', {ob:'ject'});
```

The above outputs:

```
[2022-07-23T19:26:29.700Z] an-example | DEBUG | this is a debug message
[2022-07-23T19:26:29.702Z] an-example | INFO  | this is an info message
[2022-07-23T19:26:29.702Z] an-example | WARN  | this is a warning message
[2022-07-23T19:26:29.702Z] an-example | ERROR | this is an error message
[2022-07-23T19:26:29.702Z] an-example | INFO  | here is an { ob: 'ject' }
```

The log format uses `util.format()` under the hood, so you can use
standard(-ish) %-style format specifiers, like sprintf and
friends.

All methods can be chained, primarily so that you can do this:

```js
logger.show('warnings')
      .as('my-program');
```

Environmental configuration is strongly encouraged, but not
provided directly by the library.  Here's an idea to get you
started:

```js
logger.show(process.env.LOG_LEVEL)
      .as(process.env.LOG_IDENTITY);
```

You can also use the `as()` function to include build numbers and
such, probably sourced from your CI pipelines:

```js
const { version } = require('./version.json');
logger.show(process.env.LOG_LEVEL)
      .as(`my-program/${version}`);
```

Happy Hacking!
npm package: @niftytoolbox/zolygon
Description: A forked SDK for using the Zora Media Protocol on Polygon (previously known as Matic)
Author: Zora
Latest version: 1.0.11

## ZDK: The Zora Development Kit

| Statements                                                                    | Branches                                                                    | Functions                                                                 | Lines                                                                    |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| ![Statements](https://img.shields.io/badge/Coverage-95.36%25-brightgreen.svg) | ![Branches](https://img.shields.io/badge/Coverage-93.88%25-brightgreen.svg) | ![Functions](https://img.shields.io/badge/Coverage-90%25-brightgreen.svg) | ![Lines](https://img.shields.io/badge/Coverage-96.14%25-brightgreen.svg) |

### Overview

The Zora Development Kit (ZDK) is a tool for developers to simply and reliably interact with the Zora Protocol.
The ZDK is written in Typescript and can be used in any environment in which Javascript can be run.

The ZDK has 4 primary exports plus some types:

- [Zora](docs/zora.md)
- [Utils](docs/utils.md)
- [Addresses](docs/addresses.md)
- [Metadata](docs/metadata.md)
- [User Info](docs/users.md)

### Installation

```bash
yarn add @zoralabs/zdk
```

### Guides

- [minting](docs/minting.md)
- [bidding](docs/bidding.md)

Additional information about the Zora ecosystem can be found at [https://zora.engineering/](https://zora.engineering/)

## Development

`git clone ...`

Run tests

In a new terminal, start up a blockchain

`yarn chain`

In your current terminal, run tests

`yarn test`
npm package: @niftywell/erdjs-network-providers
Description: Network Provider (API, Gateway) components (compatible with erdjs)
Author: ElrondNetwork, Nifty Rex
Latest version: 0.1.3

# Elrond SDK for JavaScript: Network Providers

Network Provider (API, Gateway) components (compatible with erdjs).

The default classes from this package should **only be used as a starting point**. As your dApp matures, make sure you **switch to using your own network provider**, tailored to your requirements (whether deriving from the default ones or writing a new one, from scratch) that directly interacts with the Elrond API (or Gateway). Regarding this, please see the documentation referenced below.

## Documentation

 - [erdjs cookbook](https://docs.elrond.com/sdk-and-tools/erdjs/erdjs-cookbook)
 - [extending erdjs](https://docs.elrond.com/sdk-and-tools/erdjs/extending-erdjs)
 - [autogenerated API docs](https://elrondnetwork.github.io/elrond-sdk-docs/erdjs-network-providers/latest)

## Distribution

[npm](https://www.npmjs.com/package/@elrondnetwork/erdjs-network-providers)

## Installation

```
npm install @elrondnetwork/erdjs-network-providers
```

### Building the library

In order to compile the library, run the following:

```
npm install
npm run compile
```
npm package: @niftywell/vue-mvx
Description: MultiversX js dapp sdk integration for vuejs
Author: leroys
Latest version: 2.0.0

<div align="center">
  <h1>Vue MultiversX Dapp Plugin</h1>
  <p>This VueJS plugin provide MultiversX integration for your Dapp</p>
  <p>
    <a href="https://npmcharts.com/compare/vue-mvx?minimal=true" alt="NPM weekly downloads">
      <img src="https://badgen.net/npm/dw/vue-mvx">
    </a>
    <a href="https://www.npmtrends.com/vue-mvx" alt="NPM total downloads">
      <img src="https://badgen.net/npm/dt/vue-mvx">
    </a>
    <a href="https://npmjs.com/vue-mvx" alt="NPM version">
      <img src="https://badgen.net/npm/v/vue-mvx">
    </a>
  </p>
</div>

> Library is now in release candidate (You are welcome if you want to help)
>
![](src/_docs/authenticate.png)

[Go to the demo](https://stephaneleroy.github.io/vue-mvx/authenticate)

You can find a DApp example in [example folder](https://github.com/stephaneLeroy/vue-mvx/tree/vue3-migration/vue-mvx-demo).

## Getting started with the plugin

You can find documentation [here](https://stephaneleroy.github.io/vue-mvx/plugin/vue-mvx.html)

## Getting started for developers

``` bash
# install dependencies
npm install

# serve the dapp sample with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

## Roadmap

- [x] Init project and build management
- [x] In project DApp example
- [x] Add Maiar App Login
- [x] Add Ledger Login
- [x] Add Web Wallet Login
- [x] Add Defi Wallet
- [x] Token login signature for backend authentication
- [x] Add Local storage login cache
- [x] Migrate to typescript
- [x] Fancier DApp UI
- [x] Optimize production build
- [x] Factorize webpack configuration
- [x] Publish DApp example on github page
- [x] release candidate :tada:
- [x] Parameters, library
- [ ] Styling documentation
- [x] Vue3 /next branch and compatibility
npm package: @nigel2020/lo-cli
Description: lo cli
Author: nigel
Latest version: 1.0.63

<!--
 * @Author: nigel
 * @Date: 2020-12-02 18:02:13
 * @LastEditTime: 2020-12-10 18:51:28
-->

# lo-cli

Through the command line, collapse the framework template of each technology stack

## use

### init or create project

```
npm install -g @nigel2020/lo-cli <br/>
lo create my-project
```

### can add your template repository which surport github|gitlab|bitbucket|gitee repository

```
lo add react-single-page github|gitlab|bitbucket|gitee:username/repository-name <br/>
lo add vue-signle-page gitee:nigel2018/nri_demo_webpack4 <br/>
lo add other-single-page direct:https://github.com/xxxx/xxxx.git <br/>
```

### also surport customize file,you can configure data in lo.json in your current working direcotry

lo.json file contents as following: <br/>

```json
{
  "registryRepository": [
    {
      "name": "vue-signle-page2",
      "url": "gitee:username/repo-name"
    }
  ]
}
```

### view all the template repository

```
lo ls
```

### you can add --github options when you use lo cli to create template project

> --github option will auto help you to create organization repository and git remote add,git push your code to it;<br/>
> currently just consider github;<br/>

example:lo create test --github <br/>
you need to set organization repository in lo.json in your current working directory <br/>

```json
{
  "registryRepository": [],
  "githubToken": "your github access token",
  "githubOrgsName": "your github organization name"
}
```

github access token can be set in github Settings <br/>
Settings->Developer settings->Personal acess tokens <br/>
remember to choice user and repo scope <br/>
refer link: <br>
https://docs.github.com/cn/free-pro-team@latest/rest/reference/repos#create-an-organization-repository
npm package: @nigelchimz/ad-sdk
Description: A lightweight TypeScript SDK for integrating AI-powered contextual advertisements into your applications
Author: Nigel Chimwene
Latest version: 0.1.0

# AI Contextual Ads SDK

A lightweight TypeScript SDK for integrating AI-powered contextual advertisements into your applications.

## Installation

```bash
npm install @nigelchimz/ad-sdk
```

## Quick Start

```typescript
import { AdSDK } from '@nigelchimz/ad-sdk';

// Initialize the SDK
const adSDK = new AdSDK({
  apiKey: 'your-api-key',
  environment: 'production', // or 'development'
  enableAnalytics: true
});

// Request an ad
const ad = await adSDK.requestAd({
  context: 'User is browsing sports articles',
  userIntent: 'looking for sports equipment',
  appCategory: 'sports',
  adFormat: 'recommendation',
  maxAds: 1
});

// Display the ad
if (ad) {
  adSDK.displayAd(ad, 'ad-slot-1');
}
```

## Configuration

### SDKConfig Options

- `apiKey` (required): Your API key for the ad service
- `environment` (optional): 'development' or 'production' (default: 'development')
- `apiUrl` (optional): Custom API URL (overrides environment default)
- `enableAnalytics` (optional): Enable/disable analytics tracking (default: true)

### AdRequest Options

- `context` (required): Contextual information about where the ad will be displayed
- `userIntent` (optional): User's intent or behavior context
- `appCategory` (optional): Category of your application
- `adFormat` (optional): 'conversational', 'recommendation', 'reward', or 'banner'
- `maxAds` (optional): Maximum number of ads to return

## Methods

### `requestAd(request: AdRequest): Promise<AdResponse | null>`

Request a contextual ad based on the provided context and parameters.

### `displayAd(ad: AdResponse, slotId: string): void`

Display an ad in the specified DOM element.

### `trackClick(adId: string): Promise<void>`

Manually track a click event for an ad.

### `getAdVariant(context: string, variants: string[]): Promise<string>`

Utility method for A/B testing ad placements.

## TypeScript Support

This SDK is written in TypeScript and includes full type definitions. All interfaces are exported for your convenience:

- `AdRequest`
- `AdResponse` 
- `SDKConfig`

## License

MIT
npm package: @nigelcunningham/rialto
Description: Manage Node resources from PHP
Author: Nigel Cunningham
Latest version: 1.4.0

# Rialto

[![PHP Version](https://img.shields.io/packagist/php-v/nigelcunningham/rialto.svg?style=flat-square)](http://php.net/)
[![Composer Version](https://img.shields.io/packagist/v/nigelcunningham/rialto.svg?style=flat-square&label=Composer)](https://packagist.org/packages/nigelcunningham/rialto)
[![Node Version](https://img.shields.io/node/v/@nigelcunningham/rialto.svg?style=flat-square&label=Node)](https://nodejs.org/)
[![NPM Version](https://img.shields.io/npm/v/@nigelcunningham/rialto.svg?style=flat-square&label=NPM)](https://www.npmjs.com/package/@nigelcunningham/rialto)
[![Build Status](https://img.shields.io/travis/nigelcunningham/rialto.svg?style=flat-square&label=Build%20Status)](https://travis-ci.org/nigelcunningham/rialto)

A package to manage Node resources from PHP. It can be used to create bridges to interact with Node libraries in PHP, like [PuPHPeteer](https://github.com/nigelcunningham/puphpeteer/).

It works by creating a Node process and communicates with it through sockets.

## Requirements and installation

Rialto requires PHP >= 7.1 and Node >= 8.

Install it in your project:

```shell
composer require nigelcunningham/rialto
npm install @nigelcunningham/rialto
```

## Usage

See our tutorial to [create your first bridge with Rialto](docs/tutorial.md).

An [API documentation](docs/api.md) is also available.

## License

The MIT License (MIT). Please see [License File](LICENSE) for more information.
npm package: @nigelotoole/data-live
Description: Simple data reactivity for DOM elements
Author: Nigel O Toole
Latest version: 1.1.0

# Data Live
### Simple data reactivity for DOM elements

Automatically update an elements text when data is updated. Supports complex data and templates for presentation.

### [Demos and documentation](http://nigelotoole.github.io/data-live/)
### [Interactive demos on Codepen](https://codepen.io/nigelotoole/pen/qBeopqe)

---
## Quick start
```javascript
$ npm install @nigelotoole/data-live --save-dev
```

Import the JS into your project, add the elements to your HTML and initialize the plugin if needed.

---
### License
MIT © Nigel O Toole
npm package: @nigelotoole/share-url
Description: Share a URL with Web Share, copy to clipboard or to social media
Author: Nigel O Toole
Latest version: 1.3.0

# Share URL
### Share a URL with Web Share, copy to clipboard or to a social platform

Native Web Share API is used if available, can copy link to clipboard and share directly to social media.

### [Demo and documentation](http://nigelotoole.github.io/share-url/)

---
## Quick start
```javascript
$ npm install @nigelotoole/share-url --save-dev
```

Import the JS into your project, add the elements to your HTML and initialize the plugin if needed.

---
### License
MIT © Nigel O Toole
npm package: @nigelzor/micro-dev
Description: <img src="https://raw.githubusercontent.com/zeit/art/b1c55af9827fc0293bc5a9c1a03e37e08a6f8f16/micro-dev/logo.png" width="80"/>
Latest version: 3.1.0

<img src="https://raw.githubusercontent.com/zeit/art/b1c55af9827fc0293bc5a9c1a03e37e08a6f8f16/micro-dev/logo.png" width="80"/>

This command line interface provides a belt full of tools that make building microservices using [micro](https://github.com/zeit/micro) a breeze! It's only meant to be used in development, **not in production** (that's where [micro](https://github.com/zeit/micro) comes in).

## Features

-   **Hot Reloading:** When making changes to your code, the server will restart by itself
-   **Logs:** Incoming and outgoing requests will be logged to `stdout`
-   **Beautiful JSON:** When JSON bodies are logged, they're styled and prettified
-   **Clipboard Support:** The local address is pasted to the clipboard automatically
-   **Port Selection:** Automatic detection and use of an open port (if the specified one is in use)
-   **Debug in Your Network:** The network address shown in addition to local one
-   **Duration Logs:** Calculates and shows the duration for each request
-   **Pretty Errors:** Prettifies the `Error` object if any exceptions are thrown

## Usage

**Important:** This tool is only meant to be used in development. In production, you should use [micro](https://github.com/zeit/micro), which is much lighter and faster (and also comes without the belt of tools used when developing microservices).

When preparing your development environment, firstly install `micro-dev`:

```bash
npm install --save-dev @nigelzor/micro-dev
```

Next, add a new `script` property below `micro` inside `package.json`:

```json
"scripts": {
  "start": "micro",
  "dev": "micro-dev"
}
```

As the final step, start the development server like this:

```bash
npm run dev
```

## Debugging

The package can be used in conjunction with the Node.js inspector like this:

```json
"scripts": {
  "inspect": "node --inspect node_modules/.bin/micro-dev"
}
```

As the final step, start the development server like this:

```bash
npm run inspect
```

## Contributing

1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device
2. Move into the directory of the clone: `cd micro-dev`
3. Link it to the global module directory of Node.js: `npm link`

Inside the project where you want to test your clone of the package, you can now either use `npm link micro-dev` to link the cloned source to your project's local dependencies or run `micro-dev` right in your terminal.

## Authors

-   Leo Lamprecht ([@notquiteleo](https://twitter.com/notquiteleo)) - [Vercel](https://vercel.com)
-   Tim Neutkens ([@timneutkens](https://twitter.com/timneutkens)) - [Vercel](https://vercel.com)
npm package: @nighca/naive-ui
Description: A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
Author: 07akioni
Latest version: 2.38.1-layer.0

<p align="center">
  <img width="144px" src="https://naiveui.oss-cn-hongkong.aliyuncs.com/naivelogo.svg" />
</p>

<h1 align="center">Naive UI</h1>
<p align="center">一个 Vue 3 组件库</p>
<p align="center"><b>比较完整，主题可调，使用 TypeScript，快</b></p>
<p align="center">有点意思</p>

<p align="center"><a href="README.md">English</a> | 中文</p>

## 文档

[www.naiveui.com](http://www.naiveui.com)

## 社区

- [Discord](https://discord.gg/Pqv7Mev5Dd)
- 钉钉一群 33482509 (已满)
- 钉钉二群 35886835 (已满)
- 钉钉三群 32377370 (已满)
- 钉钉四群 8165002788 (已满)
- 钉钉五群 31205022250
- 钉钉六群 62720001971

- [Awesome Naive UI](https://github.com/naive-ui/awesome-naive)

钉钉群加入方法：在**搜索框**中搜索群号，点击下拉框中更多分组内的**网络查找公开群组**

## 特性

### 比较完整

有超过 90 个组件，希望能帮你少写点代码。

顺便一提，它们全都可以 treeshaking。

### 主题可调

我们提供了一个使用 TypeScript 构建的先进的类型安全主题系统。你只需要提供一个样式覆盖的对象，剩下的都交给我们。

顺便一提，不用 less、sass、css 变量，也不用 webpack 的 loaders。以及你可以试试右下角的主题编辑器。

### 使用 TypeScript

Naive UI 全量使用 TypeScript 编写，和你的 TypeScript 项目无缝衔接。

顺便一提，你不需要导入任何 CSS 就能让组件正常工作。

### 快

我尽力让它不要太慢。至少 select、tree、transfer、table、cascader 都可以用虚拟列表。

顺便一提，...，没有顺便了。祝你使用愉快。

## 安装

### npm

使用 npm 安装。

```bash
npm i -D naive-ui
```

### 字体

```bash
npm i -D vfonts
```

### 图标

naive-ui 建议使用 [xicons](https://www.xicons.org) 作为图标库。

### 设计资源

[Naive UI (Sketch)](https://naive-ui.oss-accelerate.aliyuncs.com/NaiveUI-Design-Library-zh-CN.sketch)

## 贡献

请参考 [CONTRIBUTING.zh-CN.md](https://github.com/tusen-ai/naive-ui/blob/main/CONTRIBUTING.zh-CN.md)

## 许可

Naive UI 使用 [MIT license](https://opensource.org/licenses/MIT) 许可证书。

`result` 组件的图像资源来自于 [Twemoji](https://github.com/twitter/twemoji)，遵守 [CC-BY 4.0](https://creativecommons.org/licenses/by/4.0/) 许可。
npm package: @night-peiqi/hero-cli
Description: A simple CLI for scaffolding projects.
Author: night-peiqi
Latest version: 1.1.0

# @night-peiqi/hero-cli

A simple CLI for scaffolding projects.

## Installation

```bash
npm install -g @night-peiqi/hero-cli
```

## Usage

```bash
hero <command> [options]
```

# Commands

- ```create <project-name>```: Create a new project.
  - ```-t --template [template]```: Input template name.
  - ```-f --force```: Overwrite target directory if it exists.
  - ```-i --ignore```: Ignore the template.json file.
- ```ls```: List all the templates.

- ```-v, --version```: Check version number.

## Help

You can use ```hero --help``` for detailed usage of given command.

## License

MIT
npm package: @night-sky/listener-express
Description: A NightSky Listener implementation for Express, to be used as middleware.
Author: Joe Brady
Latest version: 1.5.3

# listener-express

NightSky Listeners are lightweight additions to your server-side applications that collect request and response data, forwarding it on to NightSky Satellites.

This Listener implementation is an Express middleware.

It is suitable for quick-start and, if necessary, production usage. However, we recommend using the NightSky Sidecar Proxy Listener where possible for enhanced performance and separation of concerns.

## Installation

```bash
npm install --save @night-sky/listener-express
```

## Usage

```js
import express from "express";
import nightskyListener from "@night-sky/listener-express";

const app = express();

app.use(
  nightskyListener({ satelliteHost: "example-satellite.svc.cluster.local" })
);

app.get("/", (req, res) => {
  res.send({ success: true });
});

app.listen(3000);
```
npm package: @night-tea/ruler
Description: 原生canvas绘制标尺，可以进行平移与缩放，js库，所以不受前端框架限制，适用于各个项目中
Author: night tea
Latest version: 1.1.0

[说明文档](https://blog.nighttea.space/docs/Ruler/getting-started.html)

[https://blog.nighttea.space/docs/Ruler/getting-started.html](https://blog.nighttea.space/docs/Ruler/getting-started.html)
npm package: @night817/lbc-button
Description: common button component for [luban-h5](https://github.com/ly525/luban-h5)
Latest version: 1.0.2

# @luban-h5/lbc-button
common button component for [luban-h5](https://github.com/ly525/luban-h5)


![image](https://user-images.githubusercontent.com/12668546/68065580-53724500-fd66-11e9-9a43-0eb596e3cc26.png)

## Project setup
```
yarn install
yarn dev
yarn build
# change version number
npm publish --access public
```
npm package: @night817/lbc-text
Description: common button component for [luban-h5](https://github.com/ly525/luban-h5)
Latest version: 1.1.0

# @luban-h5/lbc-button
common button component for [luban-h5](https://github.com/ly525/luban-h5)


![image](https://user-images.githubusercontent.com/12668546/68065580-53724500-fd66-11e9-9a43-0eb596e3cc26.png)

## Project setup
```
yarn install
yarn dev
yarn build
# change version number
npm publish --access public
```
npm package: @night817/lbc-title
Description: common button component for [luban-h5](https://github.com/ly525/luban-h5)
Latest version: 1.0.6

# @luban-h5/lbc-button
common button component for [luban-h5](https://github.com/ly525/luban-h5)


![image](https://user-images.githubusercontent.com/12668546/68065580-53724500-fd66-11e9-9a43-0eb596e3cc26.png)

## Project setup
```
yarn install
yarn dev
yarn build
# change version number
npm publish --access public
```