open-index/open-npm huggingface dataset:
npm package: @nazarkalytiuk/rusc-xlsx-darwin-universal
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-darwin-universal`

This is the **universal-apple-darwin** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkalytiuk/rusc-xlsx-linux-arm64-gnu
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-linux-arm64-gnu`

This is the **aarch64-unknown-linux-gnu** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkalytiuk/rusc-xlsx-linux-x64-gnu
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-linux-x64-gnu`

This is the **x86_64-unknown-linux-gnu** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkalytiuk/rusc-xlsx-linux-x64-musl
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-linux-x64-musl`

This is the **x86_64-unknown-linux-musl** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkalytiuk/rusc-xlsx-win32-arm64-msvc
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-win32-arm64-msvc`

This is the **aarch64-pc-windows-msvc** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkalytiuk/rusc-xlsx-win32-ia32-msvc
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-win32-ia32-msvc`

This is the **i686-pc-windows-msvc** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkalytiuk/rusc-xlsx-win32-x64-msvc
Description: Fast Excel XLSX library for Node.js powered by rust_xlsxwriter
Author: Nazarii Kalytiuk
Latest version: 1.0.8

# `@nazarkalytiuk/rusc-xlsx-win32-x64-msvc`

This is the **x86_64-pc-windows-msvc** binary for `@nazarkalytiuk/rusc-xlsx`
npm package: @nazarkulyk/passport-env
Description: Authentication strategy based on env variables for Passport
Author: Nazar Kulyk
Latest version: 1.0.2

# passport-env

Passportjs authentication strategy based on OS/pod/container enviroment variables.

As example on macosx you always has ${USER} set to current user name.

## How to use

```typescript
import { Strategy } from 'passport';
import { EnvAuthStrategy, VerifyFunction } from '@nazarkulyk/passport-env';

const userIdEnvVariableName = 'USER';
const envVariables = [userIdEnvVariableName];

const verifyFn: VerifyFunction = (verifyEnvVariables, done) => {
    const id = verifyEnvVariables[userIdEnvVariableName];
  return !id ? done(null) : done(null, { id });
};

const createStrategy = (): Strategy => new EnvAuthStrategy({ envVariables }, verifyFn);
```

Than i your Express Routes:

```typescript
app.get('/auth/env-auth', authenticate('env-auth', { session: false }), (req, res) => {
  res.send({ authenticated: true, user: req.user });
});
```