open-index/open-npm huggingface dataset:
npm package: @jlongster/react-navigation-stack
Description: Stack navigator component for React Navigation
Latest version: 1.0.1

# React Navigation Stack

[![CircleCI badge](https://circleci.com/gh/react-navigation/react-navigation-stack/tree/master.svg?style=shield)](https://circleci.com/gh/react-navigation/react-navigation-stack/tree/master)

Stack navigator for use on iOS and Android.

## Installation

Open a Terminal in your project's folder and run,

```sh
yarn add react-navigation-stack
```

## Usage

```js
import { createStackNavigator } from 'react-navigation-stack';

export default createStackNavigator({
  Inbox: InboxScreen
  Drafts: DraftsScreen,
}, {
  initialRouteName: 'Inbox',
});
```

## Docs

Documentation can be found on the [React Navigation website](https://reactnavigation.org/docs/en/stack-navigator.html).
npm package: @jlopez1967/saceb
Description: Boolean Simplification Recursive and Distrubitive
Latest version: 2.0.2


https://github.com/ipfs/interface-ipfs-core


Number Formatter
=========

A small library that adds commas to numbers

## Installation

  `npm install @jdaudier/number-formatter`

## Usage

    var numFormatter = require('@jdaudier/number-formatter');

    var formattedNum = numFormatter(35666);
  
  
  Output should be `35,666`


## Tests

  `npm test`

## Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
npm package: @jlopezr/jovo-plugin-error-email
Description: Jovo plugin to send out emails if an error occurs.
Author: Kaan Kilic
Latest version: 2.0.4

![Example](./_images/example.png)

# Installation

> If you are using the Jovo Framework version < 2.0.0, please checkout the v1 branch [here](https://github.com/KaanKC/jovo-plugin-error-email/tree/v1)

```sh
$ npm install jovo-plugin-error-email --save
```

In your Jovo project:

```javascript
const {EmailErrorPlugin} = require('jovo-plugin-error-email');

const app = new App();

app.use(
    // other plugins, platforms, etc.
    new EmailErrorPlugin()
);
```

```javascript
module.exports = {
    // other configurations
    plugin: {
        EmailErrorPlugin: {
            fromEmail: 'fromEmail', // required
            toEmail: 'toEmail', // required
            subject: 'subject',
            awsConfig: {
                accessKeyId: 'access_key_id', // required
                secretAccessKey: 'secret_access_key', // required
                region: 'region' // required
            },
            smtpConfig: {
                host: 'host', // required
                port: 'port', // required
                auth: {
                    user: 'user', // required
                    pass: 'password', // required
                }
            }
        },
        // other plugins
    }
};
```

The plugin works with any [SMTP Server](https://nodemailer.com/smtp/) or [Amazon Simple Email Service](https://aws.amazon.com/ses/) and [nodemailer](https://nodemailer.com/about/).

## Amazon Simple Email Service

If you choose this option it is not necessary to fill the SMTP Server configuration.

As you saw above you need to provide the credentials to an AWS account, which has to have the following policy attached:

```javascript
{
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "ses:SendRawEmail",
            "Resource": "*"
        }
    ]
}
```

The email, which will be used to send out the messages, has to be verified!

Go to the `Email Addresses` tab on the AWS SES landing page:

![AWS SES Landing Page](./_images/aws_ses_landingPage.png)

and click on `Verify a New Email Address`:

![AWS SES Email Addresses](./_images/aws_ses_email_addresses.png)

After typing in your email address, you will receive a confirmation email and you're good to go.

## SMTP Server

As you saw earlier, you need to provide the parameters to configure SMTP Server and you don't need to fill the AWS configuration.

```javascript
    smtpConfig: {
        host: 'host', // required
        port: 'port', // required
        auth: {
            user: 'user', // required
            pass: 'password', // required
        }
    }
```

# License

MIT
npm package: @jlozovei/trim-currency
Description: A cool JS helper to trim/clean currency values
Author: Julio Lozovei
Latest version: 1.1.0

# @jlozovei/trim-currency
A cool JS helper to trim/clean currency values! :money_with_wings:

[![codecov](https://codecov.io/gh/jlozovei/trim-currency/branch/master/graph/badge.svg)](https://codecov.io/gh/jlozovei/trim-currency)
![Release](https://github.com/jlozovei/trim-currency/workflows/Release/badge.svg?branch=master)


## :scroll: About
If you already have to deal with currency numbers with JS, you know the struggle is real.

After some suffering with it, I decided to develop this helper function to trim/clean currency values, returning them in clean integer values.

No dependencies, no framework restrictions - just plain JS! :rocket:


## :closed_book: Usage
First things first: you need to install the package:

```bash
npm i @jlozovei/trim-currency

# or yarn add @jlozovei/trim-currency
```

After that, you'll need to import the helper wherever you want to use it:

```js
// es-modules
import trimCurrency from '@jlozovei/trim-currency';

// commonjs
const trimCurrency = require('@jlozovei/trim-currency');
```

Then, you'll be able to use it:

```js
const cleanCurrency = trimCurrency('$1,000,000.00'); // 100000000 (as Number)
```


## :computer: Developing
First, fork the project. After it, install the dependencies (preferably using [npm](https://www.npmjs.com/) - since the project is using it) and do the work.

Also, take a look at the [contributing guide](https://github.com/jlozovei/trim-currency/blob/master/.github/CONTRIBUTING.md)!


## :thinking: I want to use it, but I don't want to install it
Cool! So, the magic under the hood is basically removing all the `non-digits characters` from the string, using a regular expression (a.k.a. RegExp):

```js
const regex = /\D+/g; // \D is the token for non-digits
/*
 * you can also use the RegExp constructor:
 * const regex = new RegExp('\\D+', 'g');
 */

const currency = 'R$ 1.000.000,00';
const clean = currency.replace(regex, ''); // we're replacing the match tokens with nothing
```

### :books: Related
If you need to deal with money/currency using JS, these packages provides nice methods and you should take a look:

- [dinero.js](https://sarahdayan.github.io/dinero.js/)
- [accounting](http://openexchangerates.github.io/accounting.js)
- [currency.js](https://currency.js.org/)
- [money.js](http://openexchangerates.github.io/money.js/)


## :closed_lock_with_key: License
Licensed under the [MIT](https://github.com/jlozovei/trim-currency/blob/master/LICENSE).
npm package: @jlpenny/staticton
Description: A static site renderer
Latest version: 0.0.7

# StatiCTON
A javascript static site generator

## What is it?

StatiCTON is an easy to use static site generator, similar to Jekyll. Coming in at under 300 lines of code, it's surpringly powerful.

## How to use

### First steps: objects.yml file

The configuration format is stored in a file called `objects.yml` in the build directory. The only really 'required' variable is `base`, which is the directory to output to. 

### From the command line

You can simply run it from the commandline directly using `node ./index.js -d [build_dir]`, if [build_dir] is not specified, it will just take the current directory.

### As a library

If you want, you can include StatiCTON as such:

`var staticton = require('staticton');`
`var test = new staticton('./build_path');`
`test.all();`

This will build the build path.

### Using staticton as a library - continued

By default, the staticton library will write out to the specified `base` directory. However, you can also simply not have it write to a directory, by specifying 'false' as the first parameter of `.all`. For example:

`test.all(false);`

This tells staticton not to build to files, but instead write to a variable called 'output' in the class. Output is an object containing all of the rendered pages, the index being the page's relative URL. For instance:

`test.output['/index.html']`

So simple! This way, you can serve your data right from memory however you want, and even rebuild it on the fly by calling `all` again. This is useful if you have a frontend site which consits of mixed static and dynamic pages, or if you simply want to serve it straight out of the RAM.

### Templating engine

Templates have a simple format.

`{{ variable }}` displays a variable

`{% statement %}` performs a statement.

#### Example statements

`{% for x in/of y %}` same as JS `for ( let x in/of y )`
`{% foreach x as v, i %}` same as JS `x.forEach(v, i)`
`{% end/endfor/endif %}` is simply replaced with a finishing curly bracket
`{% endforeach %}` closes a foreach statement
`{% if x == y %}` `if(x == y)`, you also have `{% else %}` and `{% elseif x == y %}`

### API

The renderer class has a member called `globals` which contains variables which are accessible within templates. You can define your own, too. Built in ones includes:

`route(url)`

This generates a full URL for the relative `url`.

`where(pages, statement).pages`

This queries a pages object with the callback 'statement,' which is passed to Array.filter. This actually returns a 'query' class on which you can perform further `sort` or `where` transformations, then .pages contains the current list of available pages.

`sort(pages, statement).pages`

The same as where but passes the statement to Array.sort.

### Example repository

To be honest, there is much more to it than this. But until I write a proper documentation for the site templating system itself, I invite you to head over to the repo of my personal site's source to review how you could set up a build directory.

[Go to the repository](https://github.com/modamodamoda/GithubPagesSrc)
npm package: @jlramirezdev/nest-module
Description: > CLI generator para **NestJS + TypeORM** que crea un módulo completo (Entity, DTOs, Repository, Service, Controller y módulo) con convenciones de naming y soporte para plurales irregulares.
Author: José Luis Ramírez Ramírez
Latest version: 1.0.0

# @jlramirezdev/nest-module

> CLI generator para **NestJS + TypeORM** que crea un módulo completo (Entity, DTOs, Repository, Service, Controller y módulo) con convenciones de naming y soporte para plurales irregulares.

---

## Características

- Genera módulos en **kebab-case**.
- Soporta **plurales irregulares** usando `pluralize`.
- Crea automáticamente:
  - `entity`
  - DTOs (`create` y `update`) con `class-validator` y `@nestjs/swagger`
  - Repository
  - Service
  - Controller
  - Module
- Registra automáticamente el módulo en `AppModule`.
- Compatible con **NestJS + TypeORM**.
- Validaciones básicas y Swagger para documentación.

---

## Requisitos

Antes de usar este CLI, debes tener un proyecto NestJS ya creado con TypeORM:

- Node.js >= 18
- NestJS >= 10
- TypeScript >= 5
- TypeORM
- @nestjs/swagger
- class-validator
- class-transformer

---

## Instalación de dependencias

Si tu proyecto no tiene estas dependencias, instálalas primero:

```bash
pnpm add @nestjs/typeorm typeorm reflect-metadata @nestjs/swagger class-validator class-transformer pluralize
```
npm package: @jlsilva94/active-window
Description: Get active window name and title. Build on top of active-window from https://github.com/octalmage/active-window
Latest version: 0.1.5

# active-window
> Get active window title in Node.js.

Compatible with Linux, Windows 7+, and OSX;

## Usage

```javascript
var monitor = require('active-window');

callback = function(window){
  try {
    console.log("App: " + window.app);
    console.log("Title: " + window.title);
  }catch(err) {
      console.log(err);
  } 
}
/*Watch the active window 
  @callback
  @number of requests; infinity = -1 
  @interval between requests
*/
//monitor.getActiveWindow(callback,-1,1);

//Get the current active window
monitor.getActiveWindow(callback);


```
## Tested on
- Windows
 - Windows 10
 - Windows 7
- Linux 
  - Raspbian [lxdm]
  - Debian 8 [cinnamon]
- OSX
  - Yosemite 10.10.1

## TODO

- Test on more operating systems.
- Use native APIs. 

## License

MIT
npm package: @jluboff/applogger
Description: Centralized MS SQL logger for multiple apps
Author: Jason Luboff
Latest version: 1.5.6

# applogger

A centralized MS SQL logger that can be used for multiple apps

## Installation

    npm install applogger

## Prerequisites

Before you can use the applogger you must setup the required database. Run the `CreateLoggerDatabase.sql` file within your database server.

## Usage

```javascript
const AppLogger = require('applogger');
const logger = new AppLogger({
    user: sqlUser, 
    password: sqlUserPassword,
    server: sqlServer,
    database: 'AppLogger'
})
```

## License

MIT License

Copyright (c) 2019 Jason Luboff

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
npm package: @jluboff/cryptofile
Description: A file/password encryptor/decryptor module written with native NodeJS modules
Author: Jason Luboff
Latest version: 1.0.0

# CyrptoFile

A file/password encryptor/decryptor module written with native NodeJS modules

## Installation
    npm install cryptofile

## Usage
Typescript
```typescript
import CryptoFile from 'cryptofile';

const cryptoFile = new CryptoFile({ secretKey: 'My32CharacterLongSecretKey123456'}) //Secretkey of length 32 must be provided

// Create encrypted password
const encryptedPassword = cryptoFile.encryptPassword() // Optionally provide password of length 32

// Decrypt hashed password
const decryptedPassword = cryptoFile.decryptPassword(encryptedPassword)

// Create encrypted file
const newFilePathWithExtension = await cryptoFile.encryptFile('../path/to/file') // If filepath was not provided in original instantiation, it must be provided

// Decrypt hashed file
const newFilePathLocation = await cryptoFile.decryptFile({filePath: '../path/to/file'}) //If filepath was not provided in original instantiation, it must be provided
```

## Contributions
Contributions are welcome, please submit a PR which will be reviewed.

## Reporting Issues
Please report issues/errors to Github's issue tracker: [CryptoFile issue tracker](https://github.com/JLuboff/CyrptoFile/issues).
Include issue, expected behavior, and how to replicate the issue.

## License
[MIT License](https://github.com/JLuboff/CyrptoFile/blob/main/LICENSE)