open-index/open-npm huggingface dataset:
npm package: @iricocco/zeller
Description: Find the exact day of the week after the Western calendar.
Author: takanokana
Latest version: 1.0.1

# zeller

Find the exact day of the week after the Western calendar.

zeller supports both Julian and Gregorian calendars, and calculates the days of the week since October 15, 1582 according to the Gregorian calendar, and the days of the week by October 4, 1582 according to the Julian calendar.

Note that the period between October 5, 1582 and October 14, 1582 is not supported because it does not exist in both years.
We also do not support leap years before January 1st of the year, when leap years are unstable.

## Getting Started

```
$ npm install --save-dev @iricocco/zeller
```

```js
import zeller from "@iricocco/zeller";

zeller(
  1995, // year
  6, // month 1 ~ 12
  1 // day
);
// results: "Thu"
```

## description
npm package: @irida-app/ts-alias-file-import
Description: `@irida-app/ts-alias-file-import` is a utility for importing files using TypeScript's `paths` aliases defined in `tsconfig.json`. It resolves alias paths and reads the corresponding files, returning them as Buffers.
Author: Jordan Miller
Latest version: 0.0.2

# @irida-app/ts-alias-file-import

`@irida-app/ts-alias-file-import` is a utility for importing files using TypeScript's `paths` aliases defined in `tsconfig.json`. It resolves alias paths and reads the corresponding files, returning them as Buffers.

### Note:
This package is particularly useful for server-side file imports in API routes when working with **Next.js App Router** or **Expo Router**. It helps resolve file paths in your application structure by leveraging TypeScript's aliasing system.

## Features
- Resolves file paths based on TypeScript `paths` and `baseUrl` configuration.
- Supports file imports using alias patterns (e.g. `@/components/*`).
- Reads the matched file as a Buffer.

## Installation

```bash
npm install @irida-app/ts-alias-file-import
```

## Usage

First, make sure you have path aliases configured in your `tsconfig.json`:

```json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": ["src/*"]
    }
  }
}
```

Then, use `@irida-app/ts-alias-file-import` to load a file using its alias:

```ts
import { importFile } from '@irida-app/ts-alias-file-import';

async function loadFile() {
  const fileBuffer = await importFile('@/components/MyComponent.tsx');

  if (fileBuffer) {
    console.log('File loaded successfully!');
  } else {
    console.log('File not found or an error occurred.');
  }
}

loadFile();
```

## API

### `importFile(aliasPath: string): Promise<Buffer | null>`

- **aliasPath**: The path using a TypeScript alias (e.g., `@/components/MyComponent`).
- **Returns**: A promise that resolves to the file content as a `Buffer`, or `null` if the file is not found.

## To-Do's

- **Support for prefixed `*.tsconfig.json` files**: Currently, the package looks for `tsconfig.json` by default. A future enhancement will allow it to handle files with custom prefixes, such as `dev.tsconfig.json` or `prod.tsconfig.json`, for more flexible development environments.
- **More features**: Additional capabilities may include file caching or improved error handling.

PRs are welcome! If you have ideas or want to help implement new features, feel free to contribute.

## License

MIT
npm package: @iridium/dev-server
Description: Run now project in local
Author: David Bernal
Latest version: 0.0.2

# now-dev-server

Run now.sh nodejs project in local reading now.json file

## Install

```
$ npm install -g @iridium/dev-server
```

## Usage

```sh
$ dev-server [-w | --watch] [--port 3000]
```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-body
Description: Body parser to now.sh
Author: David Bernal
Latest version: 0.0.0

# Use-body

Usage:

```
const useBody = require('@iridium/use-body');

// function serverless
module.exports = useBody(async (req, res) => {
  const body = req.body; // <- Thanks to use-body;
  res.end();
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-json
Description: res.json for now.sh
Author: David Bernal
Latest version: 0.0.0

# Use-json

Usage:

```
const useJson = require('@iridium/use-json');

// function serverless
module.exports = useJson(async (req, res) => {
  const obj = {hello: 'world'};

  res.json(obj); // <- thanks to use-json
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-knex
Description: Use knex with now.sh
Author: David Bernal
Latest version: 0.0.2

# Use-knex

Usage:

```
const knex = require('@iridium/use-knex');
const config = {
  client: 'mysql',
  connection: {
    host : '127.0.0.1',
    user : 'your_database_user',
    password : 'your_database_password',
    database : 'myapp_test'
  }
};

const useKnex = knex(config)

// function serverless
module.exports = useKnex(async (req, res) => {
  const users = await req
    .db
    .select('*')
    .from('users'); // <- Thanks to use-knex;

  res.end();
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-query
Description: Query params for now.sh
Author: David Bernal
Latest version: 0.0.1

# Use-query

Usage:

```
const useQuery = require('@iridium/use-query');

// function serverless
module.exports = useQuery(async (req, res) => {
  const query = req.query; // <- Thanks to use-query

  res.end(query.param1);
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-send
Description: res.send for now.sh
Author: David Bernal
Latest version: 0.0.2

# Use-send

Usage:

```
const useSend = require('@iridium/use-send');

// function serverless
module.exports = useSend(async (req, res) => {
  const data = 'hello world'; // string, json, buffer or stream

  res.send(data [, status]); // <- thanks to use-send
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-send-status
Description: res.sendStatus for now.sh
Author: David Bernal
Latest version: 0.0.0

# Use-send-status

Usage:

```
const useSendStatus = require('@iridium/use-send-status');

// function serverless
module.exports = useSendStatus(async (req, res) => {
  res.sendStatus(200); // <- thanks to use-send-status
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)
npm package: @iridium/use-status
Description: res.status for now.sh
Author: David Bernal
Latest version: 0.0.0

# Use-status

Usage:

```
const useStatus = require('@iridium/use-status');

// function serverless
module.exports = useStatus(async (req, res) => {
  res.status(200); // <- thanks to use-status
  res.end();
})

```

## License

MIT © [David Bernal](https://github.com/davidbernal)