open-index/open-npm huggingface dataset:
npm package: @logicamente.info/clone
Description: Quickly clones a object structure
Author: Natanael Simoes
Latest version: 1.0.1

# @logicamente.info/clone

> Quickly clones a object structure

## Installation

```bash
npm install --save @logicamente.info/clone
# or
yarn add @logicamente.info/clone
```

## Usage

```js
const clone = require('@logicamente.info/clone');
const a = { foo: { bar: 'foo' } };
const b = clone(a);
b.foo.bar = 'bar';
console.log(a);
console.log(b);
```

Will produce:

```
{ foo: { bar: 'foo' } }
{ foo: { bar: 'bar' } }
```

## Why that clone dep?

Our algorithm is mastered to clone common objects, not containing any classes instances. That's why we rely on the original mighty https://github.com/pvorb/clone module.

For plain objects, this module is the fastest in the wild as you can witness [in our tests results](https://github.com/logicamenteinfo/clone-test) ([Video proof](https://www.youtube.com/watch?v=i6jzrs7dI6o)). But considering class instances copying, we realized that [clone](https://github.com/pvorb/clone) is the fastest code alive.
npm package: @logicamente.info/global-emitter
Description: A global storage that emits events when an item changes.
Author: Logicamente Info
Latest version: 1.0.0

# Global-Emitter

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]

A global storage that emits events when an item changes.

## Install

```bash
$ npm i -S @logicamente.info/global-emitter # NPM user
$ yarn add @logicamente.info/global-emitter # YARN user
```

## How to use it

```js
// LISTENER
const { globalEmitter } = require('@logicamente.info/global-emitter');
globalEmitter.on('Item', console.log);

[...]

// PROVIDER
const { setGlobal } = require('@logicamente.info/global-emitter');
setGlobal('Item', 10); // Storages at global and emits to all listeners

// console output: 10
```

## React sample

`App` contains `Form` and `List` components. When a new text is submited at
`Form`, it executes `setGlobal` to perform a emission. `List` sets a listener
at its `componentDidMount` that runs `appendText` on every emission.

No more props (or other complex state managers) to make components communicate!

```js
import React, { Component } from 'react';
import { globalEmitter, setGlobal } from '@logicamente.info/global-emitter';

class App extends Component {
  render() {
    return (
      <div>
        <Form />
        <List />
      </div>
    )
  }
}

class Form extends Component {
  state = {}

  onSubmit(e) {
    e.preventDefault();
    setGlobal('TextForm', this.state.text);
    this.setState({ text: '' });
  }

  render() {
    return (
      <form onSubmit={this.onSubmit.bind(this)}>
        <input type="text" placeholder="write something..." required
          value={this.state.text}
          onChange={(e) => this.setState({ text: e.target.value })}
        />
        <button type="submit">Send</button>
      </form>
    );
  }
}

class List extends Component {
  state = { list: [] };

  componentDidMount() {
    globalEmitter.on('TextForm', this.appendText.bind(this));
  }

  appendText(text) {
    this.setState({ list: this.state.list.concat([text]) });
  }

  render() {
    return (
      <ul>
        {this.state.list.map((l, i) => <li key={i}>{l}</li>)}
      </ul>
    );
  }
}
```

[build-badge]: https://img.shields.io/travis/logicamenteinfo/global-emitter/master.png?style=flat-square
[build]: https://travis-ci.org/logicamenteinfo/global-emitter

[npm-badge]: https://img.shields.io/npm/v/@logicamente.info/global-emitter.png?style=flat-square
[npm]: https://www.npmjs.org/@logicamente.info/global-emitter
npm package: @logicamente.info/mongoose-uploaded-file
Description: Adds the SchemaType 'UploadedFile' to mongoose in order to verify if file exists.
Author: Logicamente Info
Latest version: 1.0.1

# mongoose-uploaded-file

This is a mongoose SchemaType to store path of saved files.

## What it does

* Save a String contaning the path to a file saved at device disk
* Validates if the file exists before saving at database

## Installation

```bash
$ npm i -S @logicamente.info/mongoose-uploaded-file # NPM users
$ yarn add @logicamente.info/mongoose-uploaded-file # YARN users
```

## How to use

```JavaScript
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
// Add the UploadedFile SchemaType to mongoose
require('@logicamente.info/mongoose-uploaded-file').loadType(mongoose);
const UploadedFile = mongoose.Types.UploadedFile;

// If you haven't declared the const UploadedFile
// you can use 'mongoose.Types.UploadedFile'
const ProductSchema = Schema({
  photo: { type: UploadedFile }
});

const Product = mongoose.model('Product', ProductSchema);

const p = new Product();
p.photo = '/upload/photo.jpg'
```

### Schema options

It accepts all properties from mongoose [String SchemaType](https://mongoosejs.com/docs/schematypes.html#strings).

```JavaScript
// This will transform the path into lowercase, then remove blank space
// at start and end, then validates if the file exists
var ProductSchema = Schema({
  photo: { type: UploadedFile, required: true, lowercase: true, trim: true }
});
```

## Testing

At root of this project, run `npm test`
npm package: @logicamente.info/react-drop-component
Description: A configurable React Dropzone Component
Author: natanaelsimoes@gmail.com
Latest version: 1.0.4

# DropComponent

This is a direct modification of [Romgrk's DropZone](https://github.com/romgrk/react-drop-zone/) for better management of the component and handling of files.

#### Install

`npm i -S @logicamente.info/react-drop-component`

## How to use

```jsx
import { DropComponent } from '@logicamente.info/react-drop-component'

<DropComponent onDrop={(file, text) => console.log(file, text)} />
```

## Props

| Name | Description | Default |
| --- | --- | --- |
| `onDrop` (required) | called when a file is dropped or selected. Signature: `(file: HTML5File, text: String)` | |
| `handleClick` | Handle click events on the rendered component | `true` |
| `dontRead` | Prevent reading the file content, if it's causing problems | `false` |
| `label` | Label on the component | `Select or Drop your file here` |
| `multiple` | Allows user to select or drop multiple files for each input | `false` |
| `accept` | File types that user can drop or pick from the file input dialog box | `*` |

### Details

The component overwrites the `onDrag/DragEnter/.../Drop` props of the render function child.
npm package: @logicamente.info/react-input-month
Description: React component that enables the use of inputs with month type in browsers that does not support it nativelly
Author: Logicamente Info
Latest version: 1.0.7

# React-Input-Month

[![Travis][build-badge]][build]
[![npm package][npm-badge]][npm]

This is a React component that enables the use of inputs with month type in
browsers that does not support it nativelly.

For a demo, run `yarn start`.

## Installation

```bash
$ npm i -S @logicamente.info/react-input-month # NPM user
$ yarn add @logicamente.info/react-input-month # NPM user
```

## Usage

```js
import React from 'react';
import InputMonth from '@logicamente.info/react-input-month';

export default class Demo extends React.Component {
  render() {
    return (
      <InputMonth
        required        // Default: false
        lang={"pt-BR"}  // Default: en-US
        value={this.state.month}
        onChange={(e) => this.setState({ month: e.target.value })}>
    );
  }
}
```

[build-badge]: https://img.shields.io/travis/logicamenteinfo/react-input-month/master.png?style=flat-square
[build]: https://travis-ci.org/logicamenteinfo/react-input-month

[npm-badge]: https://img.shields.io/npm/v/@logicamente.info/react-input-month.png?style=flat-square
[npm]: https://www.npmjs.org/@logicamente.info/react-input-month
npm package: @logicate/react-realtime-cursor
Description: A react component that integrates Figma-like cursor chat into your application
Author: Logicate
Latest version: 0.0.3

<p align="center">
  <img src="https://user-images.githubusercontent.com/9207663/190860564-dc2b3516-28a2-4249-a420-d8f33b4f6c69.png" >
  <p align="center">Figma-like cursor chat for React<p>
  <p align="center">
    <a href="https://www.npmjs.com/package/@7nohe/react-realtime-cursor">
      <img src="https://img.shields.io/npm/v/@7nohe/react-realtime-cursor.svg" />
    </a>
    <a href="https://github.com/7nohe/react-realtime-cursor/blob/master/LICENSE">
      <img src="https://img.shields.io/github/license/7nohe/react-realtime-cursor.svg" />
    </a>
    <a href="https://github.com/7nohe/react-realtime-cursor/actions/workflows/main.yml">
      <img src="https://github.com/7nohe/react-realtime-cursor/actions/workflows/main.yml/badge.svg" />
    </a>
  </p>
</p>

## Features

- Real-time cursor sharing
- Sending temporary messages with cursor
  - Press `/` to show an input box
  - Press `ESC` to close an input box

## Documentation

https://react-realtime-cursor.netlify.app
npm package: @logiccore/feature-pilot
Description: Feature Pilot is a feature flagging library for Node.js
Author: LogicCore Digital
Latest version: 2.0.0

# Feature Pilot

Feature Pilot is a feature flagging library for Node.js. To be able to use this library, you need to have an account on [Feature Pilot](https://featurepilot.logiccore.digital).

## Installation

```bash
npm install @logiccore/feature-pilot
```

## Usage

```typescript
import { FeaturePilot } from "@logiccore/feature-pilot";

const featurePilot = new FeaturePilot("your-project-id", "your-api-key");

const flags = await featurePilot.getFlags({ subject: "user-123" });
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

&copy; 2025 LogicCore Digital.
npm package: @logicer/tsconfig
Description: Logicer's Typescript Base Configuration
Author: logicer
Latest version: 5.0.1

# Logicer's Typescript Base Configuration

[![npm (scoped)](https://img.shields.io/npm/v/%40logicer/tsconfig)](https://www.npmjs.com/package/@logicer/tsconfig)
[![GitHub commit activity (branch)](https://img.shields.io/github/commit-activity/m/Logicer16/tsconfig)](https://github.com/Logicer16/tsconfig/graphs/contributors)

Logicer's Typescript configuration for use in other projects. Designed to be built upon for the project's specific needs. Includes the type-coverage plugin.

## Install

```sh
npm install --save-dev typescript ts-plugin-type-coverage @logicer/tsconfig
```

## Usage

In the project's `tsconfig.json`:

```
{
  "$schema": "https://json.schemastore.org/tsconfig",
  "extends": "@logicer/prettier-config",
  ... // Your modifications
  "compilerOptions": {
		"outDir": "<out-directory>"
	},
  "include": [
    "<source-directory>"
  ]
}
```
npm package: @logicflow/dumi-theme-simple
Description: Simple website theme based on dumi2.
Latest version: 1.0.3

# @logicflow/dumi-theme-simple

[![NPM version](https://img.shields.io/npm/v/@logicflow/dumi-theme-simple.svg?style=flat)](https://npmjs.org/package/@logicflow/dumi-theme-simple)
[![NPM downloads](http://img.shields.io/npm/dm/@logicflow/dumi-theme-simple.svg?style=flat)](https://npmjs.org/package/@logicflow/dumi-theme-simple)

A theme package for the [dumi](https://next.d.umijs.org) framework.

## Usage

Install this theme into `devDependencies`:

```bash
$ npm i @logicflow/dumi-theme-simple -D
```

Configure it in dumi config file `.dumirc.ts`:

```ts
import { defineConfig } from 'dumi';

export defineConfig({
  themeConfig: {
    ...
  },
});
```

That's all, now you can execute `dumi dev` and enjoy this theme.

## Options

TODO

## Development

```bash
$ npm install
```

After the dependencies are installed, a symlink from `example/.dumi/theme` to `../../src` will be created automatically, the symlink makes dumi load our theme package as a local theme, so we can start the example directly, HMR is also available:

```bash
# build project
pnpm run build

# switch to example directory
$ cd example

# downloads the dependencies
npm install

# start dev server to preview
npm run dev
```

dumi theme development documentation: https://next.d.umijs.org/theme

## LICENSE

MIT