open-index/open-npm huggingface dataset:
npm package: @nitra/export-excel
Description: export-excel helper
Latest version: 1.2.0

# @nitra/export-excel

```javascript
import { exportFile, date } from 'quasar'
import { exportToExcel } from '@nitra/export-excel'

const columns = [
  {
    label: '#',
    field: 'id',
    align: 'center',
    width: 10
  },
  {
    label: 'Test',
    field: 'created',
    align: 'right',
    width: 15
  }
]

const rows = [
  {
    id: 1,
    created: date.formatDate(new Date(), 'DD.MM.YYYY HH:mm')
  },
  {
    id: 2,
    created: date.formatDate(new Date(), 'DD.MM.YYYY HH:mm')
  }
]

const buffer = await exportToExcel(columns, rows, 'buffer')

exportFile(`test.xlsx`, buffer, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
```
npm package: @nitra/file-link
Description: file-link helper
Latest version: 3.1.0

# @nitra/file-link

# file-link Redis Integration

This project provides a simple setup for using the `file-link` library with `Redis` or an in-memory store, depending on the environment (production or local development).

## Features

- **Redis as a store**: In production, the store uses Redis for caching or storing data.
- **In-memory store**: In local development, it can default to an in-memory store if Redis is not available.
- **Environment variable checks**: The project uses `@nitra/check-env` to ensure necessary environment variables are defined.
- **Error handling**: Any connection errors are logged using an event listener.

## Requirements

- **Node.js**
- **Redis (for production)**

## Installation

To install the library, run:

```typescript
bun add @nitra/file-link
# or
npm install @nitra/file-link
```

## Configuration

Set the Redis connection string and namespace in the environment variables:

```typescript
REDIS_CONN=redis://user:password@localhost:6379
file-link_NAMESPACE=your-namespace
```
npm package: @nitra/graphql-custom
Description: Extend GraphQL schema with custom types
Author: vitaliytv
Latest version: 1.1.2

# prettier-config-standard

A Prettier [shareable config](https://prettier.io/docs/en/configuration.html#sharing-configurations)
for projects using **[Prettier](https://prettier.io/)** and
**[JavaScript Standard Style](https://standardjs.com/)** as ESLint rules or
separate processes.

## Installation

```
yarn add @nitra/prettier-config-standard -D
```

_This is only a shareable configuration. It does not install Prettier, Standard,
ESLint, or any other part of the tool chain._

## Usage

Reference it in `package.json` using the `prettier` property:

```json
{
  "name": "my-projects-name",
  "prettier": "@nitra/prettier-config-standard",
  "devDependencies": {
    "@nitra/prettier-config-standard": "^1.0.0"
  }
}
```
npm package: @nitra/isenv
Description: NODE_ENV shortcuts
Author: nitra
Latest version: 2.0.1

# isenv

[![Maintainability](https://api.codeclimate.com/v1/badges/c4635c8f6d6f2913659c/maintainability)](https://codeclimate.com/github/nitra/isenv/maintainability)

## Installation

```bash
$ npm install @nitra/isenv --save
```

or

```bash
$ yarn add @nitra/isenv
```

## Usage with ES Modules

```javascript
"use strict";

import { isDev, isProd } from "@nitra/isenv";

{
  console.log("is production =", isProd);

  /* ... */

  if (isDev) {
    /* ... */
  }
}
```

## Usage with require

```javascript
"use strict";

const { isDev, isProd } = reuire("@nitra/isenv");

{
  console.log("is production =", isProd);

  /* ... */

  if (isDev) {
    /* ... */
  }
}
```

## Variables

Available vars

| Signature           | Description                    |
| ------------------- | ------------------------------ |
| `isDev -> boolean`  | True if the env it development |
| `isProd -> boolean` | True if the env is production  |
| `isTest -> boolean` | True if the env is test        |

## License

This software is released under the [MIT License](https://github.com/nitra/isenv/blob/master/LICENSE).
npm package: @nitra/keyv
Description: Keyv helper
Latest version: 2.1.2

# @nitra/keyv

# Keyv Redis Integration

This project provides a simple setup for using the `Keyv` library with `Redis` or an in-memory store, depending on the environment (production or local development).

## Features

- **Redis as a store**: In production, the store uses Redis for caching or storing data.
- **In-memory store**: In local development, it can default to an in-memory store if Redis is not available.
- **Environment variable checks**: The project uses `@nitra/check-env` to ensure necessary environment variables are defined.
- **Error handling**: Any connection errors are logged using an event listener.

## Requirements

- **Node.js**
- **Redis (for production)**

## Installation

To install the library, run:

```typescript
bun add @nitra/keyv
# or
npm install @nitra/keyv
```

## Configuration

Set the Redis connection string and namespace in the environment variables:

```typescript
REDIS_CONN=redis://user:password@localhost:6379
KEYV_NAMESPACE=your-namespace
```
npm package: @nitra/minify-image
Description: minify images (PNG, JPEG, GIF, SVG)
Latest version: 2.0.0

# Minify images (PNG, JPEG, GIF, SVG)

[![view on npm](https://img.shields.io/npm/v/@nitra/minify-image.svg)](https://www.npmjs.org/package/@nitra/minify-image)
[![npm module downloads](https://img.shields.io/npm/dt/@nitra/minify-image.svg)](https://www.npmjs.org/package/@nitra/minify-image)
[![Build Status](https://travis-ci.org/nitra/minify-image.svg?branch=master)](https://travis-ci.org/nitra/minify-image)
[![Coverage Status](https://coveralls.io/repos/github/nitra/minify-image/badge.svg?branch=master)](https://coveralls.io/github/nitra/minify-image?branch=master)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/nitra/minify-image.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/nitra/minify-image/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/nitra/minify-image.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/nitra/minify-image/context:javascript)
[![Dependency Status](https://david-dm.org/nitra/minify-image.svg)](https://david-dm.org/nitra/minify-image)
[![Known Vulnerabilities](https://snyk.io/test/github/nitra/minify-image/badge.svg?targetFile=package.json)](https://snyk.io/test/github/nitra/minify-image?targetFile=package.json)
[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/nitra)

Minify images in directory, if compressed size lower than 15%

## Example run:

```bash
npx @nitra/minify-image --src=.
```

## Options

    --write           If not set, only estimate size difference
    --src directory   The directory to process.
    -h, --help        Print this usage guide.
npm package: @nitra/parse-phone
Description: make world phone number (Ru, Ukr)
Author: nitra
Latest version: 1.3.0

# isenv

[![Maintainability](https://api.codeclimate.com/v1/badges/4311d3f7eac5313191cd/maintainability)](https://codeclimate.com/github/nitra/parse-phone/maintainability)

## Installation

```bash
$ npm install @nitra/parse-phone --save
```

or

```bash
$ yarn add @nitra/parse-phone
```

## Usage

```javascript
"use strict";

import { parsePhone } from "@nitra/parse-phone";

{
  /* ... */
  const phone = parsePhone("+7 913 065 89 17");
  if (phone) {
    /* ... */
  }
}
```

## License

This software is released under the [MIT License](https://github.com/nitra/parse-phone/blob/master/LICENSE).
npm package: @nitra/pg-reassign-owner
Description: reassign-owner helper
Latest version: 1.0.2

# @nitra/reassign-owner

## Reassign all objects in database to new owner

@nitra/reassign-owner uses the same environment variables as libpq and psql to connect to a PostgreSQL server.

To run and specify which database to connect to we can invoke it like so::

```bash
PGUSER=dbuser \
  PGHOST=database.server.com \
  PGPASSWORD=secretpassword \
  PGDATABASE=mydb \
  PGPORT=3211 \
  npx @nitra/pg-reassign-owner NEW_DB_OWNER
```

The default values for the environment variables used are:

```bash
  PGHOST=localhost \
  PGUSER=process.env.USER \
  PGDATABASE=process.env.USER \
  PGPASSWORD=null \
  PGPORT=5432 \
  npx @nitra/pg-reassign-owner NEW_DB_OWNER
```

original question:
https://stackoverflow.com/questions/1348126/postgresql-modify-owner-on-all-tables-simultaneously-in-postgresql/2686185#2686185
npm package: @nitra/prettier-config
Description: A Prettier shareable config for projects using 'Prettier' and 'JavaScript Standard Style' as ESLint rules or separate processes.
Latest version: 1.0.1

# prettier-config

A Prettier [shareable config](https://prettier.io/docs/en/configuration.html#sharing-configurations)
for projects using **[Prettier](https://prettier.io/)** and
**[JavaScript Standard Style](https://standardjs.com/)** as ESLint rules or
separate processes.

## Installation

```sh
yarn add @nitra/prettier-config -D
```

_This is only a shareable configuration. It does not install Prettier, Standard,
ESLint, or any other part of the tool chain._

## Usage

Reference it in `package.json` using the `prettier` property:

```json
{
  "name": "my-projects-name",
  "prettier": "@nitra/prettier-config",
  "devDependencies": {
    "@nitra/prettier-config": "^1.0.0"
  }
}
```
npm package: @nitra/strapi-provider-upload-google-cloud-storage
Description: (Non-official) Google Cloud Storage Provider for Strapi Upload
Author: Vanessa Pasque
Latest version: 3.0.0-beta.18

# strapi-provider-upload-google-cloud-storage

**Non-Official** Google Cloud Storage Provider for Strapi Upload

Inspired from https://www.npmjs.com/package/strapi-provider-upload-google-cloud-storage

Except:

- removed bucket autocreate
- add support for regional bucket
- add support for Uniform bucket-level access

## Installation

Install the package from your app root directory

```
cd /path/to/strapi/
npm install @nitra/strapi-provider-upload-google-cloud-storage --save
```

## Setting up Google authentification

1. In the GCP Console, go to the **Create service account key** page..
   - **[Go to the create service account key page](https://console.cloud.google.com/apis/credentials/serviceaccountkey)**
2. From the **Service account** list, select **New service account**.
3. In the **Service account name** field, enter a name.
4. From the **Role** list, select **Storage > Storage Object Admin**.
5. Click **Create**. A JSON file that contains your key downloads to your computer.

## Setting up Strapi upload configuration

1. Copy the full content of the downloaded JSON file
2. Paste it into the "Service Account JSON" field in Strapi Upload Settings
3. Set an existing Bucket name
4. Save the configuration
5. Enjoy !

## Resources

- [MIT License](LICENSE.md)

## Links

- [Strapi website](http://strapi.io/)
- [Strapi community on Slack](http://slack.strapi.io)
- [Strapi news on Twitter](https://twitter.com/strapijs)
npm package: @nitra/testssl
Description: testssl.sh install script
Author: Sven, mailsvb@gmail.com
Latest version: 2.0.1

# node-testssl

This is a node for running the testssl.sh script

## Installation

```
npm install node-testssl
```

it will download the latest version of the testssl.sh script from github automatically (https://github.com/drwetter/testssl.sh)

```

## Thanks to

- [Dirk Wetter](https://github.com/drwetter)
- [Peter Mosman](https://github.com/PeterMosmans)
```
npm package: @nitra/tf
Description: Vite translate helper
Latest version: 1.3.1

# @nitra/tf

usage with Vite (set `import.meta.env.VITE_T` to activate translation):

```javascript
import tf from '@nitra/tf'

const tr = {
  'Привіт': 'Hello',
}

const t = tf.bind({ tr })

t`Привіт` // Hello

```

usage node (set `process.env.VITE_T` to activate translation):

```javascript
import tf from '@nitra/tf'

const tr = {
  'Привіт': 'Hello',
}

const t = tf.bind({ tr })

t`Привіт` // Hello

```

usage webpack (set `process.env.VITE_T` to activate translation):

```javascript
import tf from '@nitra/tf/webpack'

const tr = {
  'Привіт': 'Hello',
}

const t = tf.bind({ tr })

t`Привіт` // Hello

```

usage without environment variable:

```javascript
import tf from '@nitra/tf/t'

const tr = {
  'Привіт': 'Hello',
}

const t = tf.bind({ tr, t: 1 })

t`Привіт` // Hello

```
npm package: @nitra/tfm
Description: Vite translate helper
Latest version: 2.4.0

# @nitra/tfm

## usage with Vite

Default language can be set in:

```javascript
import.meta.env.VITE_TFM_DEFAULT
```

If VITE_TFM is set, store will be disable

example in web:

```vue
<template>
  <div>Мова: {{ langStore.code }}</div>
  <button @click="setEnglish()">Set english (base)</button>
  <button @click="setLatvian()">Set latvian</button>
  <button @click="setUkrainian()">Set ukrainian</button>
  <div>{{ t`Hello Sun ${langStore.code} !` }}</div>
  <router-view />
</template>

<script setup>
import tf from '@nitra/tfm'
import { useLangStore } from '@nitra/tfm/store'

const langStore = useLangStore()

const tr = {
  'Hello Sun ': { uk: 'Привіт Сонечко ', lv: 'Sveika Saulīte ', ee: 'Tere Päike ' }
}

const t = tf.bind({ tr })

const setEnglish = () => {
  langStore.code = 'en'
}

const setUkrainian = () => {
  langStore.code = 'uk'
}

const setLatvian = () => {
  langStore.code = 'lv'
}
</script>
```
npm package: @nitra/tfm-node
Description: Node translate helper
Latest version: 1.0.2

# @nitra/tfm-node

## usage with node

ENV TFM

```javascript
import tf from '@nitra/tfm-node'
import Fastify from 'fastify'

const fastify = Fastify()

const tr = {
  'Привіт Сонечко ': { en: 'Hello Sun ', lv: 'Sveika Saulīte ', ee: 'Tere Päike ' }
}

// Declare a route
fastify.post('/', {}, function (req, reply) {
  console.log(req.headers.lang)
  const t = tf.bind({ tr, lang: req.headers.lang })

  reply.send({ result: t`Привіт Сонечко ${Date.now()} without trans ${0}` })
})

// Run the server!
fastify.listen({ port: 3000 })
```
npm package: @nitra/vite-check-env
Description: Vite.js plugin that makes build fail if a required environment variable(s) is missing
Author: Pavel Sušický
Latest version: 1.2.0

# @nitra/vite-check-env

Vite.js plugin that makes build fail if a required environment variable(s) is missing.

It supports all .env.\* files (even combined)

- .env
- .env.local
- .env.[mode]

Example CLI output by @nitra/vite-check-env plugin:

```sh
> Missing environment variable: VITE_SENTRY1
```

## Install dependency

```sh
# npm
npm i -D @nitra/vite-check-env

# yarn
yarn add -D @nitra/vite-check-env

# pnpm
pnpm add -D @nitra/vite-check-env
```

## Add to Vite configuration file

```js
import { defineConfig } from "vite";
import { requireEnvVar } from "@nitra/vite-check-env";

/** @type {import('vite').UserConfig} */
export default {
  plugins: [requireEnvVar(["VARIABLE_1", "VITE_URL"])]
})
```

```ts
import { defineConfig } from "vite";
import { requireEnvVar } from "@nitra/vite-check-env";

export default defineConfig({
  plugins: [requireEnvVar(["VARIABLE_1", "VITE_URL"])],
});
```
npm package: @nitra/wpr
Description: Web Page Replay Go binary
Author: Vitalii Tverdokhlib
Latest version: 2.1.1

# wpr
Web Page Replay Go binary

Platform dependent binary installer of [WebPageReplay](https://github.com/catapult-project/catapult/tree/master/web_page_replay_go) for node projects. Useful for serverless.

Provide binary of `wpr` for the Linux x64 and Mac platforms.

## Install

    npm install --save wpr
    
## Usage examples

```javascript
const wpr = require('wpr')

// start record
await wpr.start('record')

// start play
await wpr.start()

// start play or record
await wpr.stop()

// remove wpr file
await wpr.clean()
```

## 

set ENV ```VERBOSE``` to extened output
npm package: @nitric/pulumi-supabase
Description: A pulumi provider that manages supabase platform resources
Latest version: 0.0.4

# Pulumi Supabase

A native pulumi provider for the Supabase Management API.

## Installing

To install this plugin run:

```bash
pulumi plugin install resource supabase ${VERSION} --server https://github.com/nitrictech/pulumi-supabase/releases/download/${VERSION} 
```
> Where `${VERSION}` is a tagged released of this resource see: [Releases](https://github.com/nitrictech/pulumi-supabase/releases)

### Using NPM

```bash
npm install @nitric/pulumi-supabase
```

### Using Golang

```bash
go get github.com/nitrictech/pulumi-supabase/sdk
```

## Configuring

This provider mostly uses the supabase experimental management API so an experimental access token will be required to deploy resources

When generating the token make sure to select an experimental token:

![Generate Experimental Token](assets/experimental-token.png)

The provider can be configured by providing the following environment variable:

```bash
SUPABASE_ACCESS_TOKEN=<YOUR_ACCESS_TOKEN>
```

## Supported Resources

 - [x] Organizations
 - [x] Projects
 - [x] Buckets
 - [x] Secrets
 - [x] Database Functions

> Additional resource support is planned but if there is anything you'd like to see sooner, let us know in the issues

## Supported Languages

 - [x] Typescript
 - [x] Golang
 - [ ] C# (Generated but not published)
 - [ ] Python (Generated but not published)

> If you would like support for a missing language please raise an issue


## Examples

For example implementations see [here](./examples/)

## Development

### Prerequisites

Ensure the following tools are installed and present in your `$PATH`:

* [`pulumictl`](https://github.com/pulumi/pulumictl#installation)
* [Go 1.17](https://golang.org/dl/) or 1.latest
* [NodeJS](https://nodejs.org/en/) 14.x.  We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS installations.
* [Yarn](https://yarnpkg.com/)
* [TypeScript](https://www.typescriptlang.org/)
* [Python](https://www.python.org/downloads/) (called as `python3`).  For recent versions of MacOS, the system-installed version is fine.
* [.NET](https://dotnet.microsoft.com/download)

#### Build the provider and install the plugin

   ```bash
   $ make build install
   ```
   
This will:

1. Create the SDK codegen binary and place it in a `./bin` folder (gitignored)
2. Create the provider binary and place it in the `./bin` folder (gitignored)
3. Generate the dotnet, Go, Node, and Python SDKs and place them in the `./sdk` folder
4. Install the provider on your machine.

#### Test against the example
   
```bash
$ cd examples/simple
$ yarn link @pulumi/supabase
$ yarn install
$ pulumi stack init test
$ pulumi up
```