open-index/open-npm huggingface dataset:
npm package: @jessedp/nedb-async
Description: Promise wrapper for Nedb that makes it possible to use all Nedb all cursor modifiers.
Author: Akuma Isaac Akuma
Latest version: 0.1.3-c

# Nedb-Async

**nedb-async is a simply promise base wrapper methods for <a href="https://github.com/louischatriot/nedb">Nedb</a>**

## Installation
Install with npm
```bash
  npm install nedb-async
```
or with yarn
```bash
  yarn add nedb-async
```

## Usage

It is very simple and to avoid too much complexity all the cursor modifiers for
`find, findOne and count`
methods has to be pass as the last argument in an array.

---

**Very important to know that all the promise base methods starts with async then the method name in camel casing**

- `asyncFind`
- `asyncFindOne`
- `asyncCount`
- `asyncInsert`
- `asyncUpdate`
- `asyncRemove`
- `asyncEnsureIndex`
- `asyncRemoveIndex`

and every other ned`b origin methods are still available.

## Usage:

```js
db.asyncFind({}, [['sort', { name: -1 }], ['limit', 2]])
  .then(function(docs) {})
  .catch(function(error) {})
//Or with async await
async function getUsers() {
  let users = await db.asyncFind({}, [['limit', 100]])
}

async function countAllUsers() {
  let users = await db.asyncCount({})
}
```

For Nodejs

```js
const DB = require('nedb-async')

const data = new Nedb({
  filename: 'data.db',
  autoload: true,
})
```

## Typescript

For typescript users conceder using this approach for better types support

```ts
import Nedb from 'nedb-async'

interface IUser {
  firstName: string
  lastName: string
  age: number
  email: string
}

const User = new Nedb<IUser>({ filename: 'data.db', autoload: true })
```

Please use the official <a href="https://github.com/louischatriot/nedb">Nedb</a> documentation for more information.

## Licence

MIT
npm package: @jessekelly/ui-utils
Description: A collection of useful ui utils for react
Latest version: 1.0.1

# Nano React App Default Javascript Template

The default template project for [nano-react-app](https://github.com/adrianmcli/nano-react-app).

- `npm start` — This will spawn a development server with a default port of `1234`.
- `npm run build` — This will output a production build in the `dist` directory.

## Custom port

You can use the `-p` flag to specify a port for development. To do this, you can either run `npm start` with an additional flag:

```
npm start -- -p 3000
```

Or edit the `start` script directly:

```
parcel index.html -p 3000
```

## Adding styles

You can use CSS files with simple ES2015 `import` statements anywhere in your Javascript:

```js
import "./index.css";
```

## Babel transforms

The Babel preset [babel-preset-nano-react-app](https://github.com/nano-react-app/babel-preset-nano-react-app) is used to support the same transforms that Create React App supports.

The Babel configuration lives inside `package.json` and will override an external `.babelrc` file, so if you want to use `.babelrc` remember to delete the `babel` property inside `package.json`.


## Deploy to GitHub Pages

You can also deploy your project using GitHub pages.
First install the `gh-pages` [package](https://github.com/tschaub/gh-pages):

`npm i -D gh-pages`

With Parcel's `--public-url` flag, use the following scripts for deployment:

```
"scripts": {
  "start": "parcel index.html",
  "build": "parcel build index.html --public-url '.'",
  "predeploy": "rm -rf dist && parcel build index.html --public-url '.'",
  "deploy": "gh-pages -d dist"
},
```

Then follow the normal procedure in GitHub Pages and select the `gh-pages` branch.
npm package: @jessenl/winston-sentry-log
Description: Winston transport for @Sentry/node
Author: Francisco Sales
Latest version: 1.0.15

# winston-sentry-log

[Sentry](https://sentry.io) transport for the [winston](https://github.com/winstonjs/winston) v3 logger using [@sentry/node](https://github.com/getsentry/sentry-javascript).

## Index

- [Install](#install)
- [Usage](#usage)
- [Options](#options-options)
- [License](#license)

## Install

```bash
yarn add winston winston-sentry-log
```

## Usage

You can configure `winston-sentry-log` in two different ways.

With `new winston.Logger`:

```js
import winston from 'winston';
import Sentry from 'winston-sentry-log';

const options = {
  dsn: "https://******@sentry.io/12345",
  level: "info"
};

const logger = new winston.createLogger({
  transports: [new Sentry(options)]
});
```

Or with winston's `add` method:

```js
import winston from 'winston';
import Sentry from 'winston-sentry-log';

const logger = new winston.createLogger();

logger.add(Sentry, options);
```

See [Options](#options-options) below for custom configuration.

## Options (`options`)

Per `options` variable above, here are the default options provided:

Default Sentry options:

- `dsn` (String) - your Sentry DSN or Data Source Name (defaults to `process.env.SENTRY_DSN`)

Transport related options:

- `name` (String) - transport's name (defaults to `winston-sentry-log`)
- `silent` (Boolean) - suppress logging (defaults to `false`)
- `level` (String) - transport's level of messages to log (defaults to `info`)
- `levelsMap` (Object) - log level mapping to Sentry (see [Log Level Mapping](#log-level-mapping) below)

### Default Sentry Options (`options.config`)

- `logger` (String) - defaults to `winston-sentry-log`
- `server_name` (String) - defaults to `process.env.SENTRY_NAME` or `os.hostname()`
- `release` (String) - defaults to `process.env.SENTRY_RELEASE`
- `environment` (String) - defaults to `process.env.SENTRY_ENVIRONMENT`)
- `modules` (Object) - defaults to `package.json` dependencies
- `extra` (Object) - no default value
- `fingerprint` (Array) - no default value

For a full list of Sentry options, please visit <https://docs.sentry.io/clients/node/config/>.

### Log Level Mapping

Winston logging levels are mapped by default to Sentry's acceptable levels.

These defaults are set as `options.levelsMap` and are:

```js
{
  silly: 'debug',
  verbose: 'debug',
  info: 'info',
  debug: 'debug',
  warn: 'warning',
  error: 'error'
}
```

You can customize how log levels are mapped using the `levelsMap` option:

```js
new Sentry({
  levelsMap: {
    verbose: "info"
  }
});
```

If no log level mapping was found for the given `level` passed, then it will not log anything.

## License

[MIT License][license-url]

[license-url]: LICENSE
npm package: @jessenzr/prisma-mass-production
Description: Populate database using defined factories
Author: Jesse Medeiros
Latest version: 0.1.5

#+title: Readme

Create factories and use them to populate database. This package is based on
Laravel's Eloquent factories. It can help you generate model instances for your
tests or seeding database. It works well with libraries like faker.

It's an experimental package and still in very alpha stage.

* Examples
#+begin_src typescript
import { Prisma, User } from '@prisma/client'
import Factory from '@jessenzr/prisma-mass-production'

// define the factory
const UserFactory = Factory.make<Prisma.UserCreateInput, User>('User',
  () => ({
    name: 'Jonh Smith',
  })
)
// use the factory
await UserFactory.create()
await UserFactory.create({
  name: 'overriding the default param'
})
#+end_src