open-index/open-npm huggingface dataset:
npm package: @marcellejs/devtools
Description: Some development tools for marcelle projects
Latest version: 0.6.5

# @marcellejs/devtool

This package contains a command line interface for generating components and managing backends in Marcelle projects.

## Installation

```bash
npm install --save-dev @marcellejs/devtools
# or: yarn add --dev @marcellejs/devtools
# or: pnpm add -D @marcellejs/devtools
```

## Usage

When generating a new Marcelle application, a CLI is installed as a development dependency (`@marcellejs/devtools`). It includes a number of useful tools for development.

To run the CLI from your project's root:

```bash
npx marcelle # or yarn marcelle, pnpx marcelle
```

### Generating a Component

It is possible to use the CLI to create new custom components for an application or a marcelle package. Run `npx marcelle`, then select 'Create a component' and enter your component's name (e.g. `my-component`). The generator will create a template component that you can use your in your script:

```js
import { myComponent } from './components';

const m = myComponent(opts);
```

Components are stored in the `src/components` directory and provide a [Svelte](https://svelte.dev) view by default:

```bash
.
├── src
│   └── components
│       ├── my-component
│       │   ├── my-component.component.js # Component definition file
│       │   ├── my-component.view.svelte    # Svelte component defining the component's view
│       │   └── index.js            # function wrapper
│       └── index.js
```

### Managing the Backend

The CLI offers two tools to manage persistent data in a server-side 'backend'.

#### Configuring a backend

To simply add a backend to your application, select 'Manage the backend', then 'Configure a backend'. this will install `@marcellejs/backend` as a dependency to your project and create configuration files

Two options are available for the backend:

- The type of database: [NeDB](https://github.com/louischatriot/nedb) and [MongoDB](https://www.mongodb.com/) are currently supported.
- Whether or not it should use authentication.

After reinstalling dependencies (`npm install` or `yarn` or `pnpm install`), you can run the server:

```bash
npm run backend
```

The backend configuration files are stored in `backend/configuration`.

#### Exporting a backend (experimental)

It is possible to export the source code for the backend in the './backend' directory in order to customize it.

## License

Copyright (c) 2022 [Marcelle contributors](https://github.com/marcellejs/marcelle/graphs/contributors)

Licensed under the MIT license.
npm package: @marcellodotgg/ngx-validators
Description: A series of Angular Form Validators to help speed up common validation scenarios by extending the ones provided by the Angular team.
Author: Marcello
Latest version: 0.0.10

# ngx-validators ✅️

An extension of the Validators provided by the @angular team. Angular provides great out-of-the-box Validators for forms. However, they don't have validators when you need to depend on other FormControls. We extend the Validators provided by Angular and give more useful ones, particularly with cross-control functionality.

While this is on NPM and available to install as a dependency, I encourage you to copy the file and move into your code base to avoid a dependency.

## Installing
```sh
npm i @marcellodotgg/ngx-validators
```

## Documentation and Demo
* You can read the documentation here: [DOCUMENTATION](https://marcellodotgg.github.io/ngx-validators/docs/)
* You can view the demo form here: [DEMO](https://marcellodotgg.github.io/ngx-validators) 

## Sample Usage
```ts
import { Validators } from "@marcellodotgg/ngx-validators";

class MyComponent {
  // first name is always required
  // start and end date is optional, unless you enter a start date or end date.
  form = new FormGroup({
    firstName: new FormControl("", Validators.required),
    startDate: new FormControl("", Validators.requiredIfAny("endDate")),
    endDate: new FormControl("", Validators.requiredIfAny("startDate")),
  });
}
```

## API
* `if(condition: string)`
* `any(...controlNames: string[])`
* `all(...controlNames: string[])`
* `anyEqual(...controlPairs: [controlName, value][])`
* `allEqual(...controlPairs: [controlName, value][])`
* `equal(value: any)`
* `range(start: number, end: number)`
* `zipCode`
* `stateCode`
* `stateName`
* `streetAddress`

## Future Work
* `profanity`
* `lt(controlName: string, opts = { includeFalsy: false })`
* `lte(controlName: string, opts = { includeFalsy: false })`
* `gt(controlName: string, opts = { includeFalsy: false })`
* `gte(controlName: string, opts = { includeFalsy: false })`
* `json`
* `in`
* `notIn`
* `base64`
* `creditCard`
* `number`
* `NaN`
* `url`

## Contributing
Pull Requests are welcome. We require passing tests and descriptions should be filled out. In addition, update any documentation if needed.

PRs may be closed for any reason.
npm package: @marcellodotgg/storage-bin
Description: a storage-like interface using IndexedDB under the hood
Author: Marcello
Latest version: 1.0.1

# 🗑️ bin

An extremely lightweight Web Storage-like API library using IndexedDB under-the-hood, with zero dependencies. Get the benefits of IndexedDB but with the simplicity and familiarity of `localStorage` and `sessionStorage`.

## Installation

```sh
npm i @marcellodotgg/storage-bin
```

## Usage

```js
import { localBin, sessionBin } from "@marcellodotgg/storage-bin";

await localBin.setItem("age", 24);
const age = await localBin.getItem("age");
await localBin.removeItem("age");
const entireBin = localBin.dump();
localBin.clear();

// Session works similiarly, however, we will set a flag
// in sessionStorage and will create a new database
// for the session.

await sessionBin.setItem("age", 14);
const age2 = sessionBin.getItem("age");
await sessionBin.removeItem("age");
const entireBin2 = sessionBin.dump();
sessionBin.clear();
```
npm package: @marcellukomski/randomid-generator
Description: - Random ID Gnerator feature that can give uniqe max 10 digit ID with numbers and letters.
Latest version: 1.0.1

# Info
- Random ID Gnerator feature that can give uniqe max 10 digit ID with numbers and letters.

# Installation
- npm install or yarn add @marcellukomski/randomid-generator

# Usage

Example: const randomID = require('@marcellukomski/randomid-generator');

console.log(randomID(5));