open-index/open-npm huggingface dataset:
npm package: @pinecone-js/nest
Description: PineconeJS — NestJS extensions that keep devs focused on business logic
Latest version: 0.3.13

# Pinecone JS Nest

A library for defining request/response schemas and handling result responses in NestJS using Zod.

## Installation

```bash
npm install @pinecone-js/nest
```

## Usage

Example controller with input/output validation schemas:

```ts
import { Controller, Get } from '@nestjs/common';
import {
  RequestSchema,
  ResponseSchema,
  HttpResult,
  type HttpResponse,
} from '@pinecone-js/nest';
import { z } from 'zod';

const inputSchema = z.object({
  name: z.string(),
  age: z.number(),
});

const outputSchema = z.object({
  name: z.string(),
  age: z.number(),
  success: z.boolean(),
});

@Controller('users')
export class UserController {
  @Get()
  @ResponseSchema(outputSchema)
  getUsers(
    @RequestSchema(inputSchema) input,
  ): HttpResponse<any> {
    return HttpResult.success({
      name: 'John Doe',
      age: 20,
      success: true,
    });
  }
}
```

## Exports

- `RequestSchema`, `ResponseSchema`: Decorators for validating schemas.
- `AppResult`, `HttpResult`: Helpers to format result responses.
- Works seamlessly with Zod for data validation.

## Build

npm run build && npm version patch && npm publish

## License

MIT
npm package: @pinecone-lang/pinecone-js
Description: JavaScript parser for pinecone (.pc) files
Author: pinecone-lang
Latest version: 1.0.1

# pinecone-lang
Pinecone (.pc) is a fast open-sourced configuration language with type annotations and comments
## Installation
```
npm i @pinecone-lang/pinecone-js
```
## Marksheet
Line structure: `key`: `type` = `value`<br>
Supported types: `string`, `int`, `float`, `boolean`<br>
Arrays are specified using square-brackets in type definition `type[]`, value should be enclosed in square brackets and elements are split using commas `[element0, element1]`<br>
Whitespace is ignored outside of brackets (`"` or `'`)<br>
You can comment using `//`
## Configuration example
```
// this is a comment and will be ignored

title: string = "Some Title" // you can also place comments here
version: string = "1.0.0"
someInt: int = 0
someFloat: float = 0.15
tags: string[] = ["tag01", "tag02"]
usePassword: boolean == false // you can also write 0 or 1
```
## Usage example
```js
import pinecone from "@pinecone-lang/pinecone-js";
const pinecone = require("@pinecone-lang/pinecone-js");

try
{
    console.log(pinecone.parse("example.pc"));
}
catch (err)
{
    console.error("Failed to parse pinecone file:", err);
}
```