open-index/open-npm huggingface dataset:
npm package: @sigma-db/lookpath
Description: A utility to check whether an executable file of a given name exists in any of the directories listed in the system's PATH environment variable.
Author: David Luis Wiegandt
Latest version: 0.1.1

# Lookpath

[![NPM](https://img.shields.io/npm/v/@sigma-db/lookpath)](https://www.npmjs.com/package/@sigma-db/lookpath)

This package exports a single function `lookpath` that operates similar to the commands `which` and `where` on UNIX and Windows, respectively, but does not need to spawn them as a child process (and parse their output), making the operation more performant.

Inspiration was drawn from https://golang.org/src/os/exec/lp_unix.go and https://golang.org/src/os/exec/lp_windows.go from the [Go standard library](https://pkg.go.dev/std).

## Installation

Run `npm i @sigma-db/lookpath` to install the package to your project's dependencies.

## Usage

```TypeScript
import { lookpath } from "@sigma-db/lookpath";

try {
    const gitPath = await lookpath("git");
} catch {
    // Command is either not in the environment's path or not executable...
}
```
npm package: @sigma-db/napi
Description: A utility to setup an environment for development of native Node.js modules.
Author: David Luis Wiegandt
Latest version: 0.4.2

# N-API CLI

[![NPM](https://img.shields.io/npm/v/@sigma-db/napi)](https://www.npmjs.com/package/@sigma-db/napi)
![node version](https://img.shields.io/node/v/@sigma-db/napi)

This project eases the process of setting up an environment for developing [native Node.js modules](https://nodejs.org/dist/latest-v13.x/docs/api/n-api.html) by fetching the correct architecture- and OS-specific header and library files as well as preparing the `CMakeLists.txt` acxcordingly.

## Prerequisites

Currently, this tool requires `cmake` and `ninja` to be in your `PATH`, as well as a working C/C++ toolchain.

* On **Windows**, you can use the [Visual Studio Build Tools](https://download.visualstudio.microsoft.com/download/pr/5446351f-19f5-4b09-98c6-a4bfacc732d7/7da4388648c92544c97407c6f052fd6bc0317db407cadab9fdcb328a34d3e317/vs_BuildTools.exe) which includes all required tools. In that case, make sure that you use the appropriate *Tools Command Prompt for Visual Studio*
* On **Linux** and other **UNIX**-like environments, make sure to have `cmake`, `ninja`, `clang`/`gcc` and `ld` available in your `PATH`.

## Installation

Run `npm i -g @sigma-db/napi` to install the `napi` CLI globally.

## Usage

Assume we want to create and build a project named `native`.

1. **create** the project and change into its directory by running `napi new native && cd native`.

2. **initialise** the project by running `napi init` from within the project directory to automatically download the appropriate header and static library files.

3. **build** the project by running `napi build` from within the project directory.

4. **test** that requiring your native module actually works by running `napi test` from within the project directory. You should see an output like `A project named "native" is growing here.`

5. **clean** any files generated during the build by running `napi clean` from within the project directory. Note that doing this will make `CMake` run again on the next build, considerably increasing the build time of the next build.

### Changing the Node.js version

If you happen to change to version of Node.js, you will also require new header and static library files. In that case, run `napi clean all`, which will delete any previously downloaded header and library files, as well as any built files.

## Disclaimer

The current code was written in a single 16h session and might need quite some refactoring and more user-friendly error-handling — I'd love to see people contributing.
npm package: @sigma-interactive/micro
Description: [![NPM version](https://img.shields.io/npm/v/[name]?color=a1b858&label=)](https://www.npmjs.com/package/[name])
Author: Son Hong Do
Latest version: 0.4.1

# [name]

[![NPM version](https://img.shields.io/npm/v/[name]?color=a1b858&label=)](https://www.npmjs.com/package/[name])

## Sponsors

<p align="center">
  <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
    <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
  </a>
</p>

## License

[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)
npm package: @sigma-interactive/supabase-js
Description: Isomorphic Javascript client for Supabase
Author: Supabase
Latest version: 1.35.8

# `supabase-js`

An isomorphic JavaScript client for Supabase. Fork for Sigma Interactive

- **Documentation:** https://supabase.com/docs/client/supabase-client
- TypeDoc: https://supabase.github.io/supabase-js

## Usage

First of all, you need to install the library:

```sh
npm install @supabase/supabase-js
```

Then you're able to import the library and establish the connection with the database:

```js
import { createClient } from '@supabase/supabase-js'

// Create a single supabase client for interacting with your database
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')
```

### UMD

You can now use plain `<script>`s to import supabase-js from CDNs, like:

```html
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
```

or even:

```html
<script src="https://unpkg.com/@supabase/supabase-js"></script>
```

Then you can use it from a global `supabase` variable:

```html
<script>
  const { createClient } = supabase
  const _supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')

  console.log('Supabase Instance: ', _supabase)
  // ...
</script>
```

### ESM

You can now use type="module" `<script>`s to import supabase-js from CDNs, like:

```html
<script type="module">
  import { createClient } from 'https://cdn.jsdelivr.net/npm/@supabase/supabase-js/+esm'
  const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key')

  console.log('Supabase Instance: ', supabase)
  // ...
</script>
```

### Custom `fetch` implementation

`supabase-js` uses the [`cross-fetch`](https://www.npmjs.com/package/cross-fetch) library to make HTTP requests, but an alternative `fetch` implementation can be provided as an option. This is most useful in environments where `cross-fetch` is not compatible, for instance Cloudflare Workers:

```js
import { createClient } from '@supabase/supabase-js'

// Provide a custom `fetch` implementation as an option
const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key', {
  fetch: (...args) => fetch(...args),
})
```

## Sponsors

We are building the features of Firebase using enterprise-grade, open source products. We support existing communities wherever possible, and if the products don’t exist we build them and open source them ourselves. Thanks to these sponsors who are making the OSS ecosystem better for everyone.

[![New Sponsor](https://user-images.githubusercontent.com/10214025/90518111-e74bbb00-e198-11ea-8f88-c9e3c1aa4b5b.png)](https://github.com/sponsors/supabase)