open-index/open-npm huggingface dataset:
npm package: @juniorfixhow/durationjs
Description: This package is to check the time difference.
Author: JuniorFixHow
Latest version: 1.0.1

��# Installation
npm i @juniorfixhow/durationjs

# Usage
const { checkTimeSince, timeRemaining, countDown } = require("@juniorfixhow/durationjs"); //commonjs
<br>
import { checkTimeSince, timeRemaining, countDown } from "@juniorfixhow/durationjs"; //module

# checkTimeSince
This function checks for the time difference between the current date-time and the past.

const past = checkTimeSince(new Date("2024-04-11T09:21:04.459Z"));
<br>
console.log(past + ' ago')

# timeRemaining
This function checks for the time difference between the future date-time and the current one.
<br>
const time = new Date(new Date().setHours(new Date().getHours()+5)); //this is supposed to be the future date-time.
<br>
const future = timeRemaining(time)
<br>
console.log(future + ' remaining')

# countDown
This function counts down from a future date and stops when it reaches the current date-time
<br>

### Example Usage

```javascript
import React, { useEffect, useState } from 'react';

const YourComponent = () => {
  const [formattedTime, setFormattedTime] = useState('');

  useEffect(() => {
    const timer = countDown('2024-04-13T12:00:00');

    const intervalId = setInterval(() => {
      const time = timer.getFormattedTime();
      setFormattedTime(time);
    }, 1000);

    // Call the stop method and clear the interval when the component unmounts
    return () => {
      timer.stop();
      clearInterval(intervalId);
    };
  }, []);

  return <div>{formattedTime}</div>;
};
npm package: @juniper-tech/core
Description: Common utilities for Juniper Tech models, events and actions.
Author: Daniel
Latest version: 0.1.12

# `@juniper-tech/core`

## Usage
... work in progress
### Kafka Topic Consumption
We use kafkajs in the core library to generate and process messages in topics.

```
import { JuniperKafka, JuniperConsumer } from '@juniper-tech/core'

const kafka = JuniperKafka(process.env.KAFKA_BROKERS || '', 'juniper-ingest-client', 2)

const consumer = await JuniperConsumer(kafka, 'nodejs-dev', null)

```


### Sensor Model Interaction
We use sequelize to interact with tables and have conveniently abstracted out
the model creation so you can import into your own package.

```
// Sequelize connection is the sequelize instance of your db
import SequelizeConnection from '../sequelize-connection'
import { SensorModel } from '@juniper-tech/core'


let sensorPg = SensorModel(DB)

// this is now a standard sequelize model and can be used like one
sensorPg.bulkCreate(data as any).catch((err:any) => {
  console.error('error', err)
})
```
npm package: @junipero/hooks
Description: 🏔 Junipero Design System React hooks
Author: Ugo Stephant
Latest version: 3.12.9

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://cdn.junipero.design/v3/logo/junipero-logo-dark.svg" />
  <img src="https://cdn.junipero.design/v3/logo/junipero-logo.svg" height="50" />
</picture>

<br />

[![npm](https://img.shields.io/npm/v/@junipero/hooks.svg)](https://www.npmjs.com/package/@junipero/hooks)

<h3>@junipero/hooks</h3>
<p>Custom React hooks we use everywhere</p>

</div>

## Installation

```bash
yarn add @junipero/hooks
```

## Usage

```javascript
import { useEventListener, useTimeout } from '@junipero/hooks';

export default () => {
  useTimeout(() => {
    console.log('This has been executed 1s after first render!');
  }, 1000);

  useEventListener('click', () => {
    console.log('You clicked inside the current document');
  });

  return <div />;
};
```

## Documentation

https://junipero.design/components/use-event-listener

## Contributing

Please check the [CONTRIBUTING.md](https://github.com/p3ol/junipero/blob/master/CONTRIBUTING.md) doc for contribution guidelines.

## License

This software is licensed under [MIT](https://github.com/p3ol/junipero/blob/master/LICENSE).
npm package: @junipero/react
Description: 🏔 Junipero Design System React components
Author: Ugo Stephant
Latest version: 3.12.17

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://cdn.junipero.design/v3/logo/junipero-logo-dark.svg" />
  <img src="https://cdn.junipero.design/v3/logo/junipero-logo.svg" height="50" />
</picture>

<br />

[![npm](https://img.shields.io/npm/v/@junipero/react.svg)](https://www.npmjs.com/package/@junipero/react)

<h3>@junipero/react</h3>
<p>Simple and beautiful React components for the web</p>

</div>

## Installation

```bash
yarn add @junipero/react
```

## Usage

```javascript
import { TextField } from '@junipero/react';

export default () => (
  <TextField />
);
```

Don't forget to add our default theme to your app using [@junipero/theme](https://github.com/p3ol/junipero/tree/master/packages/theme), or create your own theme.

#### Dependencies

These libraries are not bundled with Junipero and required at runtime:
- [react](https://www.npmjs.com/package/react)
- [react-dom](https://www.npmjs.com/package/react-dom)

## [Documentation](https://junipero.design/components)

https://junipero.design/components

## Contributing

Please check the [CONTRIBUTING.md](https://github.com/p3ol/junipero/tree/master/CONTRIBUTING.md) doc for contribution guidelines.

## License

This software is licensed under [MIT](https://github.com/p3ol/junipero/tree/master/LICENSE).
npm package: @junipero/react-d3-plugin
Description: 🏔 Junipero Design System D3 Components for React
Author: Ugo Stephant
Latest version: 3.12.17

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://cdn.junipero.design/v3/logo/junipero-logo-dark.svg" />
  <img src="https://cdn.junipero.design/v3/logo/junipero-logo.svg" height="50" />
</picture>

<br />

[![npm](https://img.shields.io/npm/v/@junipero/react-d3-plugin.svg)](https://www.npmjs.com/package/@junipero/react-d3-plugin)

<h3>@junipero/react-d3-plugin</h3>
<p>Simple and beautiful Charts using React, Junipero & D3</p>

</div>

## Installation

```bash
yarn add @junipero/react junipero/react-d3-plugin d3
```

## Usage

```jsx
import { Chart, Curve } from '@junipero/react-d3-plugin';
import * as d3 from 'd3';

export default () => (
  <Chart
    axis={[{
      type: d3.axisBottom,
      scale: d3.scaleTime,
      data: [new Date(2023, 0, 1), new Date(2023, 0, 2), new Date(2023, 0, 3)],
    }, {
      type: d3.axisLeft,
      scale: d3.scaleLinear,
      data: [10, 20, 30],
      grid: true,
    }]}
  >
    <Curve
      type="area"
      xAxisIndex={0}
      yAxisIndex={1}
    />
  </Chart>
);
```

Don't forget to add our default theme to your app using [@junipero/theme](https://github.com/p3ol/junipero/tree/master/packages/theme), or create your own theme.

#### Dependencies

These libraries are not bundled with this package and required at runtime:
- [react](https://www.npmjs.com/package/react)
- [react-dom](https://www.npmjs.com/package/react-dom)
- [d3](https://www.npmjs.com/package/d3)
- [@junipero/react](https://www.npmjs.com/package/@junipero/react)


## [Documentation](https://junipero.design/components)

https://junipero.design/components

## Contributing

Please check the [CONTRIBUTING.md](https://github.com/p3ol/junipero/tree/master/CONTRIBUTING.md) doc for contribution guidelines.

## License

This software is licensed under [MIT](https://github.com/p3ol/junipero/tree/master/LICENSE).
npm package: @junipero/react-native
Description: 🏔 Junipero Design System React Native components
Author: Ugo Stephant
Latest version: 3.2.0

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://cdn.junipero.design/v3/logo/junipero-logo-dark.svg" />
  <img src="https://cdn.junipero.design/v3/logo/junipero-logo.svg" height="50" />
</picture>

<br />

[![npm](https://img.shields.io/npm/v/@junipero/react-native.svg)](https://www.npmjs.com/package/@junipero/react-native)

<h3>@junipero/react-native</h3>
<p>A lighter version of <a href="https://github.com/p3ol/junipero/tree/master/packages/react">Junipero React</a>, for React Native apps</p>

-----------

### ⚠️ This package has been abandoned and is only here for legacy purposes.

-----------

</div>

## Installation

```bash
yarn add @junipero/react-native
```

## Usage

```javascript
import { TextField } from '@junipero/react-native';

export default () => (
  <TextField />
);
```

#### Dependencies

These libraries are not bundled with Junipero and required at runtime:
- [react](https://www.npmjs.com/package/react)
- [react-native](https://www.npmjs.com/package/react-native)

## [Documentation](https://junipero.design)

https://junipero.design

## Contributing

Please check the [CONTRIBUTING.md](https://github.com/p3ol/junipero/blob/master/CONTRIBUTING.md) doc for contribution guidelines.

## License

This software is licensed under [MIT](https://github.com/p3ol/junipero/blob/master/LICENSE).
npm package: @junipero/theme
Description: 🏔 Junipero Design System Common Theme
Author: Ugo Stephant
Latest version: 3.12.17

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://cdn.junipero.design/v3/logo/junipero-logo-dark.svg" />
  <img src="https://cdn.junipero.design/v3/logo/junipero-logo.svg" height="50" />
</picture>

<br />

[![npm](https://img.shields.io/npm/v/@junipero/theme.svg)](https://www.npmjs.com/package/@junipero/theme)

<h3>@junipero/theme</h3>
<p>Theme base for Junipero</p>

</div>

## Installation

```bash
yarn add @junipero/theme
```

## Usage

```javascript
import '@junipero/theme/dist/junipero.min.css';
```

If you need to tree-shake some unneeded styles, you can import every component/utility manually instead:

```css
@import "@junipero/theme/dist/css/reset.min.css";
@import "@junipero/theme/dist/css/icons.min.css";
@import "@junipero/theme/dist/css/texts.min.css";
@import "@junipero/theme/dist/css/transitions.min.css";
@import "@junipero/theme/dist/css/Label.min.css";
@import "@junipero/theme/dist/css/Abstract.min.css";
@import "@junipero/theme/dist/css/TextField.min.css";
/* ...and so on */
```

The full list is available inside the `dist/css` folder.

## [Documentation](https://junipero.design/foundations)

https://junipero.design/foundations

## Contributing

Please check the [CONTRIBUTING.md](https://github.com/p3ol/junipero/tree/master/CONTRIBUTING.md) doc for contribution guidelines.

## License

This software is licensed under [MIT](https://github.com/p3ol/junipero/tree/master/LICENSE).
npm package: @junipero/transitions
Description: 🏔 Junipero Design System React Transitions
Author: Ugo Stephant
Latest version: 3.12.17

<div align="center">

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://cdn.junipero.design/v3/logo/junipero-logo-dark.svg" />
  <img src="https://cdn.junipero.design/v3/logo/junipero-logo.svg" height="50" />
</picture>

<br />

[![npm](https://img.shields.io/npm/v/@junipero/transitions.svg)](https://www.npmjs.com/package/@junipero/transitions)

<h3>@junipero/transitions</h3>
<p>A collection of React transitions we use everywhere</p>

</div>

## Installation

```bash
yarn add @junipero/transitions
```

## Usage

```javascript
import { slideInUpMenu } from '@junipero/transitions';
import { Tooltip } from '@junipero/react';

export default () => (
  <Tooltip animate={slideInUpMenu}>
    Info
  </Tooltip>
);
```

## [Documentation](https://junipero.design/components/transition)

https://junipero.design/components/transition

## Contributing

Please check the [CONTRIBUTING.md](https://github.com/p3ol/junipero/blob/master/CONTRIBUTING.md) doc for contribution guidelines.

## License

This software is licensed under [MIT](https://github.com/p3ol/junipero/blob/master/LICENSE).
npm package: @juniusbbd/swagger-node-runner
Description: Forked Swagger loader and middleware utilities
Latest version: 1.0.0

# autodesk-forks-swagger-node-runner

This package is a fork of [apigee-127/swagger-node-runner](https://github.com/apigee-127/swagger-node-runner). 
The purpose of this fork is to update dependencies and continue to maintain the original package.

Would you like to contribute? Read [our contribution guidelines](./CONTRIBUTING.md).

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![NodeJS with Gulp](https://github.com/autodesk-forks/swagger-node-runner/actions/workflows/npm-gulp.yml/badge.svg)](https://github.com/autodesk-forks/swagger-node-runner/actions/workflows/npm-gulp.yml)
![semver](https://img.shields.io/badge/semver-2.0.0-blue)
[![npm version](https://badgen.net/npm/v/autodesk-forks-swagger-node-runner)](https://www.npmjs.com/package/autodesk-forks-swagger-node-runner)
[![contributors](https://img.shields.io/github/contributors/autodesk-forks/swagger-node-runner)](https://github.com/autodesk-forks/swagger-node-runner/graphs/contributors)

## :book: Resources

- [Documentation](./docs/API.md)
- [Typescript definitions](./index.d.ts)
- [Changelog](https://github.com/autodesk-forks/swagger-node-runner/releases)

## Getting started

You can install this fork via npm:
```bash
npm i autodesk-forks-swagger-node-runner
```

Sample usage with express server:
```javascript
const SwaggerRunner = require("swagger-node-runner");
const request = require("supertest");
const express = require('express')();
const axios = require('axios');

SwaggerRunner.create({
    appRoot: './test/assets/project'
}, async (err, runner) => {
    if (err) console.error(err);

    runner.expressMiddleware().register(express);

    const {statusCode: goodRequest} = await request(express)
        .put('/expect_integer')
        .query({
            name: 123123,
        });
    console.log(goodRequest); // will output 200

    const {statusCode: badRequest} = await request(express)
        .put('/expect_integer')
        .query({
            name: 'string',
        });
    console.log(badRequest); // will output 400
})
```
npm package: @juniusbbd/swagger-restify-mw
Description: Swagger loader and middleware for Restify
Author: Scott Ganyo
Latest version: 1.0.0

# Middleware for Open API (Swagger) projects

This middleware is used by the [Swagger](https://www.npmjs.com/package/swagger) project. It is designed to handle all your Open API-driven project needs with minimal fuss - and maximal flexibility.

### Important!
This is primarily a wrapper for the [swagger-node-runner](https://github.com/theganyo/swagger-node-runner) project. Be sure to follow that project and read the release notes there!
npm package: @juniyadi/cloudfront
Description: ![npm](https://img.shields.io/npm/dm/@juniyadi/cloudfront) ![npm](https://img.shields.io/npm/v/@juniyadi/cloudfront) ![NPM](https://img.shields.io/npm/l/@juniyadi/cloudfront) ![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cloudfront)
Latest version: 0.6.0

# Cloudfront

![npm](https://img.shields.io/npm/dm/@juniyadi/cloudfront)
![npm](https://img.shields.io/npm/v/@juniyadi/cloudfront)
![NPM](https://img.shields.io/npm/l/@juniyadi/cloudfront)
![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cloudfront)
npm package: @juniyadi/cognito
Description: ![npm](https://img.shields.io/npm/dm/@juniyadi/cognito) ![npm](https://img.shields.io/npm/v/@juniyadi/cognito) ![NPM](https://img.shields.io/npm/l/@juniyadi/cognito) ![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cognito)
Latest version: 2.2.0

# Cognito

![npm](https://img.shields.io/npm/dm/@juniyadi/cognito)
![npm](https://img.shields.io/npm/v/@juniyadi/cognito)
![NPM](https://img.shields.io/npm/l/@juniyadi/cognito)
![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cognito)
npm package: @juniyadi/date
Description: ![npm](https://img.shields.io/npm/dm/@juniyadi/cognito) ![npm](https://img.shields.io/npm/v/@juniyadi/cognito) ![NPM](https://img.shields.io/npm/l/@juniyadi/cognito) ![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cognito)
Latest version: 0.3.0

# Cognito

![npm](https://img.shields.io/npm/dm/@juniyadi/cognito)
![npm](https://img.shields.io/npm/v/@juniyadi/cognito)
![NPM](https://img.shields.io/npm/l/@juniyadi/cognito)
![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cognito)
npm package: @juniyadi/logger
Description: ![npm](https://img.shields.io/npm/dm/@juniyadi/cognito) ![npm](https://img.shields.io/npm/v/@juniyadi/cognito) ![NPM](https://img.shields.io/npm/l/@juniyadi/cognito) ![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cognito)
Latest version: 0.2.0

# Cognito

![npm](https://img.shields.io/npm/dm/@juniyadi/cognito)
![npm](https://img.shields.io/npm/v/@juniyadi/cognito)
![NPM](https://img.shields.io/npm/l/@juniyadi/cognito)
![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/cognito)
npm package: @juniyadi/random-string
Description: ![npm](https://img.shields.io/npm/dm/@juniyadi/random-string) ![npm](https://img.shields.io/npm/v/@juniyadi/random-string) ![NPM](https://img.shields.io/npm/l/@juniyadi/random-string) ![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/ra
Latest version: 0.3.0

# Random String

![npm](https://img.shields.io/npm/dm/@juniyadi/random-string)
![npm](https://img.shields.io/npm/v/@juniyadi/random-string)
![NPM](https://img.shields.io/npm/l/@juniyadi/random-string)
![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/random-string)

Generate Random Password with include Lowercase/Uppercase/Number or Symbol (Includes Ambiguous Character)

```javascript
import { generate } from "@juniyadi/random-string"; // ESM
// const { generate } = require("@juniyadi/random-string"); // CJS

const password = generate(16, {
  lowercase: 2,
  uppercase: 2,
  numbers: 2,
  symbols: 2,
});

console.log(password);
```
npm package: @juniyadi/serverless
Description: ![npm](https://img.shields.io/npm/dm/@juniyadi/serverless) ![npm](https://img.shields.io/npm/v/@juniyadi/serverless) ![NPM](https://img.shields.io/npm/l/@juniyadi/serverless) ![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/serverless)
Latest version: 4.1.0

# Serverless

![npm](https://img.shields.io/npm/dm/@juniyadi/serverless)
![npm](https://img.shields.io/npm/v/@juniyadi/serverless)
![NPM](https://img.shields.io/npm/l/@juniyadi/serverless)
![npm bundle size](https://img.shields.io/bundlephobia/min/@juniyadi/serverless)
npm package: @juniyadi/vcmanager-virtualizor
Description: Adapter to Virtualizor End User API
Author: JuniYadi
Latest version: 0.0.1

# VCManager-Virtualizor

Adapter to Virtualizor End User API

# How to use

```javascript
const Virtualizor = require('./src/Virtualizor')

const vps = new Virtualizor({
    api: 'https://example-panel.virtualizor.com:4083',
    key: 'ABCDEFGHIJKLMN',
    secret: 'ABCDEFGHIJKLMN',
    raw: true
})

vps.getvps(100)
.then((res) => {
    console.log(res)
})
.catch((err) => {
    console.error(err)
})
```

# Source
- [Virtualizor End User API](https://www.virtualizor.com/docs/enduser-api/)
npm package: @junjie-wu/mini-dns-resolver
Description: A simple DNS resolver package for Node.js with TypeScript support. Provides both single and bulk domain lookups.
Author: Junjie Wu
Latest version: 1.1.0

# Mini DNS Resolver

A simple DNS resolver package for Node.js with TypeScript support. Provides both single and bulk domain lookups. Available as [NPM package](https://www.npmjs.com/package/@junjie-wu/mini-dns-resolver).

## Installation

```bash
npm install @junjie-wu/mini-dns-resolver
```

## Usage

```typescript
import { DNSResolver } from '@junjie-wu/mini-dns-resolver';

// Create resolver instance with optional cache timeout (default: 5 minutes)
const resolver = new DNSResolver({ cacheTimeout: 60000 });

// Single domain lookup
try {
  const result = await resolver.lookup('google.com');
  console.log(result);
} catch (error) {
  console.error('Lookup failed:', error);
}

// Multiple domains lookup (failures won't affect successful lookups)
try {
  const results = await resolver.lookupAll(['github.com', 'example.com']);
  console.log(results);
} catch (error) {
  console.error('Bulk lookup failed:', error);
}

// Filter specific record types
const result = await resolver.lookup('gmail.com');
const mxRecords = result.records.filter(record => record.type === 'MX');
```

## API

### `lookup(domain: string): Promise<DNSLookupResult>`
Resolves all DNS records for a single domain. Uses cache if available. Throws an error if no records are found or if resolution fails.

### `lookupAll(domains: string[]): Promise<DNSLookupResult[]>`
Resolves DNS records for multiple domains. Returns results only for successful lookups, silently skipping failed ones.

### Types

```typescript
interface DNSRecord {
  type: 'A' | 'AAAA' | 'MX' | 'TXT' | 'NS' | 'CNAME';
  value: string;
}

interface DNSLookupResult {
  domain: string;
  records: DNSRecord[];
  timestamp: Date;
  responseTime: number;
  fromCache: boolean;
}
```

## Examples

For working examples, check out the [examples](https://github.com/junjie-w/mini-dns-resolver/tree/main/examples) directory:

```bash
git clone https://github.com/junjie-w/mini-dns-resolver.git
cd mini-dns-resolver/examples

# Try different examples
npm install
npm run lookup:lib                           # Library usage with caching example
npm run lookup:args google.com               # Command line lookup with single domain
npm run lookup:args google.com github.com    # Command line lookup with multiple domains
```

## Error Handling

The package throws errors in these cases:
- No DNS records found for domain
- DNS resolution failures
- Network issues

## License

MIT
npm package: @junkieta/easings
Description: easings esm functions (typescript)
Author: junkieta
Latest version: 1.0.0

# easings
イージング関数群のTypeScript版をESMで使用したかったので制作。
各関数本体のコードは全て[flixel/flixel/tweens/FlxEase.hx](https://github.com/HaxeFlixel/flixel/blob/dev/flixel/tweens/FlxEase.hx)を参考に移植している。
npm package: @junnie/marina
Description: A lightweight and powerful CLI tool for the Marina Game Engine.
Author: Junnie
Latest version: 1.2.1

# Marina CLI

A lightweight and powerful CLI tool for the Marina Game Engine.

---

## Features

- Initialize new Marina projects.
- Serve your web app with hot module replacement (HMR).
- Compile your project for production.
- Dynamically load and manage Lua scripts.

---

## Installation

### Using npm
```
npm install -g @junnie/marina
```

## Usage:

```marina init - Creates a new Marina project```

```marina serve - Serves your Marina project on port 3000```

```marina compile - Bundles the whole game engine and html page but keeps the lua scripts untouched```


## Credits:
- [Vite](https://vite.dev/)
- [Fengari](https://github.com/fengari-lua/fengari-web)

## License:
This project is maintained under the MIT license.
npm package: @junnyontop-pixel/neo-app
Description: 나만의 커스텀 프레임워크 Neo
Author: junnyontop-pixel
Latest version: 3.0.0

## Neo v2

Neo v2 is a runtime-first DSL framework.

- No build step
- No compiler
- Runtime parsing
- Script + UI separation
- State-driven rendering (full rerender)

Nested components and partial reactivity are planned for v2.x+.