open-index/open-npm huggingface dataset:
npm package: @nico78916/event_manager
Description: A simple event manager that allows you to create custom events
Author: nico78916
Latest version: 1.0.1

# Event Manager

A simple event manager which have 3 functions :

1. on(event : string,listener : function) : attach the listener to the provided event name/id
2. fire(event : string, data : any) : Trigger the event and send date with it
3. off(event : name, listener : function) : detach the listener from the event given

## Exemple

```js
const EventManager = require("@nico78916/event_manager");

function helloWorld(data){
    console.log(data);
}

EventManager.on("Event",helloWorld);
EventManager.fire("Event","Hello world!");//Output : Hello world!
EventManager.off("Event",helloWorld);
EventManager.fire("Event","Hello world!");//No output
```
npm package: @nicode-io/holidates
Description: Give holidays for a country
Author: Nicode-IO
Latest version: 1.0.0

# (◉ ͜ʖ◉))ﾉ彡 LEARNING NODE.JS ✧٩(•́⌄•́๑)
>   Learn to use this out-of-brower runtime for JavaScript
>   Important step to reach the MERN stack, one of my objective in my new web devloper's career

![](nodejs-logo.png)

### Why using this package

*   You can display all Holidays name and date from a country
*   Run: ```$ holidates country holiday_year```
*   Holiday year is optional, by default it will take current year

### Description 
> Start 28-09-2020

---

### **BeCode** Intensive Bootcamp     
This project took place in my leearning path in BeCode (see below) to full stack web developer.
In seven months you have a wonderful luck to become a great web developer. Inclusion and share spirit is your daily feeling !  
Give maximum to get maximum :rocket:

### COLLABORATION
Hello, I'm [Nicolas](https://www.linkedin.com/in/nicolas-denoel/), welcome to my all new life as developer.
After 15 years as manager and sales director it's time for me to make my dreams come true and to become a developer.
Autonomous learner, problem solver and commited team member, I'm ready for challenges !
So feel strongly to give me any recommandation about my work, advice for future projects, and all comments you want.  
If you are looking to hire a strong hybrid and atypical profile in your team do not hesitate to contact me to check if we can share a project together !  
Thanks by advance for that :heart:  

### TIMELINE
[:calendar: Discover the great timeline of my adventure to become a developer. Want to write your company's name on it ? Let's meet !](https://timelines.gitkraken.com/timeline/2e12cc334eb0406b84bf7a6339e666c4?range=2020-05-26_2020-06-27)  

[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)
npm package: @nicodejong/nest-couchdb
Description: CouchDB module for Nest framework
Latest version: 1.0.0

![CouchDB for NestJS](https://raw.githubusercontent.com/scalio/nest-couchbase/master/scalio-nc.svg?sanitize=true)

<h1 align="center">NestJS CouchDB</h1>

<p align="center">
  A <a href="http://couchdb.apache.org/">CouchDB</a> module for <a href="https://nestjs.com/">NestJS</a>
</p>

[![CircleCI](https://circleci.com/gh/scalio/nest-couchdb/tree/master.svg?style=svg)](https://circleci.com/gh/scalio/nest-couchdb/tree/master)

&nbsp;

## Installation

```bash
$ npm i @scalio/nest-couchdb nano
```

## Usage

`@scalio/nest-couchdb` uses [nano](https://www.npmjs.com/package/nano) as a data provider for CouchDB and the `Repository` pattern to handle all documents related operations.

First, let's create an `Entity`:

```typescript
import { Entity, CouchDbEntity } from '@scalio/nest-couchdb';

@Entity('cats')
export class Cat extends CouchDbEntity {
  name: string;
}
```

Where `cats` is the CouchDB database name.

The `CouchDbEntity` is a base class which has some common properties:

```typescript
class CouchDbEntity {
  _id: string;
  _rev: string;
}
```

Then, we need to import `CouchDbModule` in our `ApplicationModule`:

```typescript
import { Module } from '@nestjs/common';
import { CouchDbModule } from '@scalio/nest-couchdb';

@Module({
  imports: [
    CouchDbModule.forRoot({
      url: 'http://localhost:5984',
      username: 'couchdb',
      userpass: 'password',
      requestDefaults: { jar: true },
    }),
  ],
})
export class ApplicationModule {}
```

In our `CatsModule` we need to initiate repository for our `Cat` entity:

```typescript
import { Module } from '@nestjs/common';
import { CouchDbModule } from '@scalio/nest-couchdb';
import { CatsService } from './cats.service';
import { CatsController } from './cats.controller';
import { Cat } from './cat.entity';

@Module({
  imports: [CouchDbModule.forFeature([Cat])],
  providers: [CatsService],
  controllers: [CatsController],
})
export class CatsModule {}
```

And here is the usage of the repository in the service:

```typescript
import { DocumentListResponse } from 'nano';
import { Injectable } from '@nestjs/common';
import { InjectRepository, Repository } from '@scalio/nest-couchdb';
import { Cat } from './cat.entity';

@Injectable()
export class CatsService {
  constructor(
    @InjectRepository(Cat)
    private readonly catsRepository: Repository<Cat>,
  ) {}

  findAll(): Promise<DocumentListResponse<Cat> {
    return this.catsRepository.list();
  }
}
```

## Test

```bash
$ docker-compose up -d
$ npm test
```

## License

[MIT](LICENSE)

## Credits

Created by [@zMotivat0r](https://github.com/zMotivat0r) @ [Scalio](https://scal.io/)

## About us

<p align="center">
    <br/>
    <a href="https://scal.io/">
        <img src="https://raw.githubusercontent.com/scalio/bazel-status/master/assets/scalio-logo.svg?sanitize=true" />
    </a>
    <br/>
</p>
npm package: @nicodemos234/builder-util
Description: Various utilities. Used by [electron-builder](https://github.com/electron-userland/electron-builder).
Author: Vladimir Krivosheev
Latest version: 24.8.1
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# builder-util

Various utilities. Used by [electron-builder](https://github.com/electron-userland/electron-builder).
npm package: @nicodemos234/builder-util-runtime
Description: HTTP utilities. Used by [electron-builder](https://github.com/electron-userland/electron-builder).
Author: Vladimir Krivosheev
Latest version: 9.2.3
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# builder-util-runtime

HTTP utilities. Used by [electron-builder](https://github.com/electron-userland/electron-builder).
npm package: @nicodevs/prism-themes
Description: A collection of PrismJS themes
Author: Nico Devs
Latest version: 0.0.4

# Prism Themes

Themes for PrismJS syntax highlighter.

### Installation

```sh
npm install @nicodevs/prism-themes
```

### Usage

```js
import Prism from 'prismjs';
import '@nicodevs/prism-themes/gh-light.css'
```
npm package: @nicodoggie/devctl
Description: Easily start developing in monorepos with docker-compose, development fork
Author: Makara Sok
Latest version: 3.1.3

# DevCTL

[![asciicast](https://asciinema.org/a/AXypjq8FmtdsmCFLWwHPoOL0f.svg)](https://asciinema.org/a/AXypjq8FmtdsmCFLWwHPoOL0f)

DevCTL is a CLI app designed to:

- start docker-compose presets for easier onboarding and project switching
- customize what to run depending on what you're working on
- run everything through a local HTTPS proxy for easy HTTPS development
- heavily configurable and extensible using NodeJS

## Requirements

- Node 8+
- NPM or Yarn
- Docker
- Docker-Compose

## What DevCTL is useful for

- You have a frontend team that prefers to use the staging environment as their backend, so they don't need the API running
- You have a backend team that needs to run MySQL and Redis locally so they can test migrations and new endpoints
- You have a fullstack integration team that requires both frontend and backend to run on their machine, but they don't want to run MySQL, they prefer to use the shared Dev MySQL on the office servers
- You switch between projects back and forth, and they all have their own services to run, and they collide in ports.
- You have a new guy to onboard fast.

DevCTL decreases the onboarding time of new devs in any of our projects at Splitmedialabs. All the new users needs to have installed is docker, docker-compose and NodeJS 8+. Once a project is setup with devctl, its users does not require knowledge of docker.

## What DevCLT is **NOT**

- It is not a thick layer on docker-compose. It's a tool to switch "presets" of services. For advanced use cases, you still need to know how docker-compose and its networking components works. For simple use cases, the CLI generators should be enought to help you. **If you don't understand docker-compose, this project will most likely make it more confusing.**
- The docker-compose files that it generates are not meant to be used in production.

## Getting Started

- `yarn global add @splitmedialabs/devctl` (or `npm install -g @splitmedialabs/devctl`)
- Check examples

## Docs:

Traditional docs are non-existent 😔 instead, they're all in working examples in the [examples](./examples) folder. Don't worry though, they are quite comprehensive! We do, however, have a [reference](./docs/readme.md)

Clone this repository, and start with [examples/example-basic-react-prisma-mysql/readme.md](./examples/example-basic-react-prisma-mysql/readme.md)
npm package: @nicodoggie/devctl-plugin-arcanist
Description: Installs Phabricator's arcanist command line tools and provides some useful aliases.
Author: Nico Suarez
Latest version: 1.2.9

# devctl-plugin-arcanist

Installs Phabricator's arcanist command line tools and provides some useful aliases.


To install, run 

yarn global add devctl-plugin-arcanist:@npm:@nicodoggie/devctl-plugin-arcanist
npm package: @nicodoggie/devctl-plugin-kind
Description: devctl plugin for kubernetes-in-docker
Latest version: 1.3.0

devctl-plugin-kind
==================

A plugin for SplitmediaLabs' monorepo developer `devctl` toolkit that deploys 
services into a kubernetes kind developer cluster, instead of using
docker-compose.

Prerequisites
=============

Since the `devctl kind:init` commands haven't been updated yet, you'll have to
install all of the dependencies yourself. This may change the future.

 * gcloud: https://cloud.google.com/sdk/docs/downloads-interactive
 * kubectl: once gcloud is installed, you can do `gcloud components install kubectl`
 * kind: https://kind.sigs.k8s.io/docs/user/quick-start/
 * helm2: IMPORTANT! Since at SML we use helm2 exclusively for now, I only
   implemented with helm 2 for now. Will definitely change in the future.
   https://v2.helm.sh/docs/using_helm/#installing-helm

How to use
==========

Install `devctl` if you haven't yet. Some changes in my forked version have yet
to be pulled into the SML one:

```
yarn global add @nicodoggie/devctl
```

Install `@nicodoggie/devctl-plugin-kind` like this:

```
yarn global add devctl-plugin-kind@npm:@nicodoggie/devctl-plugin-kind
```

Currently, the init command is incomplete, and examples aren't up yet. I'll 
rectify that in a future commit.
npm package: @nicodoggie/fastify-file-upload
Description: file upload plugin for Fastify
Author: huangang
Latest version: 4.0.1

# fastify-file-upload

Fastify plugin to upload file.

[![Build Status](https://travis-ci.org/huangang/fastify-file-upload.svg?branch=master)](https://travis-ci.org/huangang/fastify-file-upload)
[![NPM version](https://img.shields.io/npm/v/fastify-file-upload.svg?style=flat)](https://www.npmjs.com/package/fastify-file-upload)

__Note: the v3.x series of this module covers Fastify v3. For Fastify v2 support refert to the v2.x series.__

## Install
```
npm i fastify-file-upload --save
```
## Usage

```js
'use strict'

const fastify = require('fastify')()
const fileUpload = require('fastify-file-upload')

fastify.register(fileUpload)

fastify.post('/upload', function (req, reply) {
  // some code to handle file
  const files = req.raw.files
  console.log(files)
  let fileArr = []
  for(let key in files){
    fileArr.push({
      name: files[key].name,
      mimetype: files[key].mimetype
    })
  }
  reply.send(fileArr)
})

fastify.listen(3000, err => {
  if (err) throw err
  console.log(`server listening on ${fastify.server.address().port}`)
})
```
## Use Schema Demo (fastify version >= 2)
``` js
fastify.post('/uploadSchema', {
  schema: {
    summary: 'upload file',
    body: {
      type: 'object',
      properties: {
        file: { type: 'object' }
      },
      required: ['file']
    }
  },
  handler: (request, reply) => {
    const file = request.body.file
    console.log(file)
    reply.send({ file })
  }
})
```

## Using Busboy Options
```js
fastify.register(fileUpload, {
  limits: { fileSize: 50 * 1024 * 1024 },
});
```
### [Available Options](https://github.com/richardgirges/express-fileupload#available-options)
npm package: @nicodoggie/kingraph
Description: Plots family trees using JavaScript and Graphviz
Author: Rico Sta. Cruz
Latest version: 0.3.0

# kingraph

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Code Climate](https://img.shields.io/codeclimate/maintainability/vorburger/kingraph.svg?style=flat-square)](https://codeclimate.com/github/vorburger/kingraph)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat-square)](https://github.com/vorburger/kingraph/issues)

> 👪 Plots family trees using JavaScript and Graphviz

A family tree plotter with a very simple syntax. It probably doesn't cover everything [bigger tools](https://gramps-project.org/) do, but covers 90% of it for the sake of simplicity.

![Example Graph](examples/intro.png)

## Installation

```sh
npm install -g alexanderwillner/kingraph
```

This adds the `kingraph` command to your shell. With `kingraph --help` you can get basic information on how to execute the tool.

## Getting started

A family tree is a [YAML](http://yaml.org/) file. To get started, store the following text in a file called `family.yaml`:

```yaml
families:
  - parents: [Marge, Homer]
    children: [Bart, Lisa, Maggie]
  - parents: [Lisa, Milhouse]
    children: [Zia]

people:
  Marge:
    fullname: Marjorie Bouvier Simpson
```

```sh
kingraph family.yaml -F dot | dot -Tpdf -o family.pdf
open family.pdf
```

## Further Examples

Spoiler alerts, view at your own risk :)

<details>
<summary><b>Simpsons</b> (simple)</summary>

Source: *[simpsons.yaml](examples/simpsons.yaml)*

> ![Simpsons Example](examples/simpsons.png)
</details>

<details>
<summary><b>Modern Family</b> (simple with houses)</summary>

Source: *[modernfamily.yaml](examples/modernfamily.yaml)*

> ![Modern Family Example](examples/modernfamily.png)
</details>

<details>
<summary><b>Harry Potter</b> (larger tree)</summary>

Source: *[potter.yaml](examples/potter.yaml)*

> ![Potter Example](examples/potter.png)
</details>

<details>
<summary><b>Game of Thrones</b> (overly complicated)</summary>

Source: *[got.yaml](examples/got.yaml)*

> ![GOT Example](examples/got.png)
</details>

## Documentation

For further reading:

- [Getting started](docs/getting_started.md)
- [Advanced usage](docs/advanced.md)
- [Schema](docs/schema.md)

## Thanks

Authored and initially maintained by Rico Sta. Cruz with help from contributors ([list][contributors]).

> [ricostacruz.com](http://ricostacruz.com) &nbsp;&middot;&nbsp;
> GitHub [@rstacruz](https://github.com/rstacruz) &nbsp;&middot;&nbsp;
> Twitter [@rstacruz](https://twitter.com/rstacruz)

[contributors]: http://github.com/rstacruz/kingraph/contributors
npm package: @nicofetter/react-pdf-highlighter
Description: Set of React components for PDF annotation
Author: Artem Tyurin
Latest version: 1.0.5

☕️ [Buy me a coffee](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SC4D2NS8G2JJ8&source=url)

![Node CI](https://github.com/agentcooper/react-pdf-highlighter/workflows/Node%20CI/badge.svg)

## react-pdf-highlighter

`react-pdf-highlighter` is a [React](https://reactjs.org/) library that provides annotation experience for PDF documents on web. It is built on top of PDF.js by Mozilla. Text and rectangular highlights are supported. Highlight
data format is independent of the viewport, making it suitable for saving on the
server.

### Example

For online example check https://agentcooper.github.io/react-pdf-highlighter/.

To run the example app locally:

```
npm install
npm start
```

Create React App example is available in [`./create-react-app-example`](https://github.com/agentcooper/react-pdf-highlighter/tree/main/create-react-app-example). Make sure to run `npm install` there as well.

### Installation

`npm install react-pdf-highlighter`

See
[`./example/src/App.tsx`](https://github.com/agentcooper/react-pdf-highlighter/blob/main/example/src/App.tsx)
for React component API example.

### Prior art

[`react-pdf`](https://github.com/wojtekmaj/react-pdf) and
[`react-pdfjs`](https://github.com/erikras/react-pdfjs) only provide React
wrappers for PDF.js and do not have built-in annotation functionality.

[`pdfjs-annotate`](https://github.com/instructure/pdf-annotate.js/) does not
provide text highlights out of the box.

PDF.js provides only viewer:

> [PDF.js is mainly written for reading PDF files, not editing them. Because of that we don't yet support adding any kind of annotations. We do however support rendering a number of annotation types for viewing.](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#is-it-possible-to-add-annotations-to-a-pdf)

See also:

- https://github.com/mozilla/pdf.js
- https://github.com/wojtekmaj/react-pdf
- https://github.com/erikras/react-pdfjs
- https://github.com/instructure/pdf-annotate.js/
- https://blogs.dropbox.com/tech/2016/11/annotations-on-document-previews/

### FAQ

##### Can I get a new PDF with the highlights embedded into the document?

Take a look at https://pdf-lib.js.org.

##### Wasn't this named react-pdf-annotator at some point?

Yes, but people from https://www.pdfannotator.com/ asked me to rename, since [they have a trademark for PDF Annotator](https://www.pdfannotator.com/en/help/infodisclaimer).

##### I'm trying the demo with my PDF and it is not loading!

Please check the [CORS headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) on your url. It is required for the cross-domain request.

### Compatibility

Works in Google Chrome, Safari 10+, Firefox 52+. Not tested in Internet
Explorer.
npm package: @nicojav/core
Description: React components library focused on usability, accessibility and developer experience
Author: Vitaly Rtishchev
Latest version: 7.13.6-rc50

# Mantine core

[![npm](https://img.shields.io/npm/dm/@mantine/core)](https://www.npmjs.com/package/@mantine/core)

Mantine core components library.

[View documentation](https://mantine.dev/)

## Installation

```bash
# With yarn
yarn add @mantine/core @mantine/hooks

# With npm
npm install @mantine/core @mantine/hooks
```

## License

MIT