open-index/open-npm huggingface dataset:
npm package: @luandro/mapeo-settings-builder
Description: Builds presets and sprites for the Mapeo Desktop app
Latest version: 3.3.0

# Mapeo Settings Builder

[![npm version][1]][2]
[![js-standard-style][3]][4]

[1]: https://img.shields.io/npm/v/mapeo-settings-builder.svg
[2]: https://www.npmjs.com/package/mapeo-settings-builder
[3]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
[4]: http://standardjs.com/

> Build settings file for [Mapeo Desktop](https://github.com/digidem/mapeo-desktop)

When run in a folder of configuration, icon files and imagery definitions will create a single settings tarball which can be imported into [Mapeo Desktop](https://github.com/digidem/mapeo-desktop) to configure the application for a particular use-case.

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Install

```
npm install --global mapeo-settings-builder
```

## Usage

```sh
# Lint settings
mapeo-settings lint

# Build settings tar file and output to stdout
mapeo-settings build {OPTIONS}

# Generate a project key
mapeo-settings generate-key
```

Mapeo Presets Builder expects the following file structure in the current directory:

```
├── categories
│   ├── a_category.json
│   ├── other_category.json
│   └── ...
├── fields
│   ├── a_field.json
│   ├── other_field.json
│   └── ...
├── presets
│   ├── preset_category
│   │   ├── a_preset.json
│   │   ├── other_preset.json
│   │   └── ...
│   ├── other_preset_category
│   │   ├── a_preset.json
│   │   ├── other_preset.json
│   │   └── ...
│   ├── uncategorized_preset.json
│   ├── other_uncategorized_preset.json
│   └── ...
├── icons
│   ├── a_icon.svg
│   ├── other_icon.svg
│   └── ...
├── defaults.json
├── imagery.json
├── metadata.json
└── style.css
```

Where:

- `imagery.json` is an object that should follow the structure defined by [editor-layer-index](https://github.com/osmlab/editor-layer-index/blob/gh-pages/schema.json)
- `style.css` is custom css to override iD css.
- `icons` is a folder of svg images to build a sprite for preset icons
- `categories`, `fields`, `presets`, `defaults.json` see [iD presets](https://github.com/openstreetmap/iD/tree/master/data/presets)
- `metadata.json` contains optional properties:
  - `projectKey` is a 32 byte (256-bit) random number encoded as a `hex` string (numbers 0-9 and lowercase letters a-f)
  - `name` is a human-readable name of these presets (written from `package.json` if it does not already exist)
  - `version` is the version number of the presets (written from `package.json` if it does not already exist)
  - `syncServer` is the URL of a mapeo-web server to sync to. (written from `package.json` if it does not already exist)

### Options

- `-l, --lang=<langCode>` - the base language of the settings, defaults to `en`.
- `-o, --output=<filename>` - write the settings tarball to this file, if unspecified prints to stdout.

## Contribute

PRs accepted.

Small note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.

## License

MIT © Digital Democracy
npm package: @luandro/react-native-ssb-shims
Description: Node.js-related shims necessary for the SSB ecosystem to run on React Native apps
Author: Andre Staltz
Latest version: 2.0.8

# react-native-ssb-shims

Node.js-related shims necessary for the SSB ecosystem to run on React Native apps.

## usage

First link all deps.

```js
react-native link react-native-randombytes && react-native link react-native-crypto && react-native link react-native-fs && react-native link rn-os && react-native link rn-tcp
```

Just import it in your project's index.js:

```js
require('react-native-ssb-shims');
```

### Note
Mac users: in order to get the post-install scripts to run, you will first need to install `coreutils` through homebrew
```brew install coreutils```
npm package: @luandro/react-native-tcp
Description: node's net API for react-native
Author: Andy Prock
Latest version: 3.3.0

# TCP in React Native

node's [net](https://nodejs.org/api/net.html) API in React Native

This module is used by [Peel](http://www.peel.com/)

## Install

* Create a new react-native project. [Check react-native getting started](http://facebook.github.io/react-native/docs/getting-started.html#content)

* In your project dir:

```
npm install react-native-tcp --save
```

__Note for iOS:__ If your react-native version < 0.40 install with this tag instead:
```
npm install react-native-tcp@3.1.0 --save
```

## Link in the native dependency

```
react-native link react-native-tcp
```

## Additional dependencies

### Due to limitations in the react-native packager, streams need to be hacked in with [rn-nodeify](https://www.npmjs.com/package/rn-nodeify)

1. install rn-nodeify as a dev-dependency
``` npm install --save-dev rn-nodeify ```
2. run rn-nodeify manually
``` rn-nodeify --install stream,process,util --hack ```
3. optionally you can add this as a postinstall script
``` "postinstall": "rn-nodeify --install stream,process,util --hack" ```

## Usage

### package.json

_only if you want to write require('net') in your javascript_

```json
{
  "browser": {
    "net": "react-native-tcp"
  }
}
```

### JS

_see/run [index.ios.js/index.android.js](examples/rctsockets) for a complete example, but basically it's just like net_

```js
var net = require('net');
// OR, if not shimming via package.json "browser" field:
// var net = require('react-native-tcp')

var server = net.createServer(function(socket) {
  socket.write('excellent!');
}).listen(12345);

var client = net.createConnection(12345);

client.on('error', function(error) {
  console.log(error)
});

client.on('data', function(data) {
  console.log('message was received', data)
});
```

### TODO

add select tests from node's tests for net

PR's welcome!



_originally forked from [react-native-udp](https://github.com/tradle/react-native-udp)_
npm package: @luanedcosta/vue-profile-picture
Description: Lightweight vue component to render the user picture or his name initials.
Author: Luan Eduardo da Costa
Latest version: 0.3.2


# Vue Profile Picture

**Lightweight vue component** to render the **user picture** or his **name initials** It's easy to customize with your style and change the behavior using the properties of the component.

## Instalation

**To install the package in your project you can type:**

- npm i @luanedcosta/vue-profile-picture
- yarn add @luanedcosta/vue-profile-picture
- Or download it from the repository: <https://github.com/LuanEdCosta/vue-profile-picture>

**Once installed you can use the component as a plugin:**

There's no options, so you can ignore the second parameter of `Vue.use()`

```javascript
import VueProfilePicture from '@luanedcosta/vue-profile-picture'

Vue.use(VueProfilePicture)
```

**Or you can import the component locally:**

```javascript
import { VueProfilePicture } from '@luanedcosta/vue-profile-picture'

export default {
    components: { VueProfilePicture }
}
```

## Simple Usage

If exists an image the component will render a `<img>` tag. If the user doesn't have an image his initials will appear in place of the image.

```html
<vue-profile-picture name="Username" img="Image src"/>
```

## Props

The table below contains all component props.

Property | Type | Default | Required | Explanation
------------ | ------------ | ------------ | ------------ | ------------
name | String |  | true | Name of the user
classes | String | null | false | HTML class property for the `<img>` tag or `<div>` with the initials
styles | Object | null | false | HTML style property for the `<img>` tag or `<div>` with the initials
noStyle | Boolean | false | false | Remove all default component classes to allow you to define your own css classes
numOfInitials | Number | 2 | false | Number of letters that will appear with the user doesn't have image
nameSeparator | String | white space | false | Character or string that separates each user name
transform | Number | 1 | false | 1 = Initials uppercase; 2 = Initials lowercase; 0 = Don't transform the text
firstName | Boolean | false | false | The component will show only the firstname initials
lastName | Boolean | false | false | The component will show only the lastname initials
def | String | '-' | false | If the component didn't find an image neither the user name the component will display this property value on screen
img | String | null | false | The *src* for the image. The same as the *src* property of the `<img>` tag
alt | String | null | false | The same as *alt* property of the `<img>` tag
draggable | String | "true" | false | If *true* the image can be draggable
npm package: @luanelioliveira/eslint-config
Description: ESLint configuration.
Latest version: 1.0.0

# eslint-config-airtech

ESLint configuration to use

## Whats included?

This package includes 1 ESLint Config:

- config-frontend

## How it works

### Install package

```
npm i -D @luanelioliveira/eslint-config
```

You can also install a specific version of the package by appending the version tag.
For example, to install version 1.0.0

```
npm i -D @luanelioliveira/eslint-config@1.0.0
```

### Install Peer Dependencies

```
npm i -D eslint prettier typescript
```

### Make ESLint config file

Add `.eslintrc` to project root

```json
{
  "extends": "@luanelioliveira/eslint-config/config-frontend"
}
```

### Make Prettier config file

Add `.prettierrc` to project root

```json
{
  "printWidth": 120,
  "singleQuote": true,
  "semi": true,
  "tabWidth": 2,
  "trailingComma": "all",
  "useTabs": false
}
```

Optional: If there are any files you want to exclude from Prettier, add `.prettierignore` to project root

### Make Editor config file

Add `.editorconfig` to project root

```conf
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
max_line_length = 120
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
```

### Add Engines

Add the node engine to `package.json`

```json
{
  "engines": {
    "node": "^16.0.0"
  }
}
```

### Add Scripts

Add scripts for linting and formatting to `package.json`

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md,graphql}\"",
    "format:check": "prettier --debug-check \"src/**/*.{ts,tsx,js,jsx,json,css,scss,md,graphql}\""
  }
}
```
npm package: @luanmuniz/password-generator
Description: Yet just another password generator
Author: Luan Muniz
Latest version: 1.0.7

Password Generator
=========
[![Build Status][ci-image]][ci-url] [![NPM Version][npm-image]][npm-url] [![Coverage Status][coverrals-image]][coverrals-url]

A small library to generate random strings

## Installation

```shell
$ npm install --save @luanmuniz/password-generator
```

## How it works
```js
const generatePassword = require('@luanmuniz/password-generator').generate;

generatePassword({
	size: 10,
	numbers: 5,
	symbols: 3,
	allowUppercase: true,
	allowRepetintion: true
});
//=> '23393Rz@}_'

generatePassword(20, {
	numbers: 5,
	symbols: 3,
	allowUppercase: true,
	allowRepetintion: true
});
//=> ';64xxy*DC6Zyt<UjZ75B'
```
## API

### generate([size], [options])

#### size
Type: `String`
The total length of your string

#### options

##### size
Type: `String`<br>
Default: `15`

The total length of your string

##### numbers
Type: `Boolean or Integer`<br>
Default: `5`<br>
All Numbers allowed: `0123456789`

`true` or `false` if numbers are allowed<br>
`Integers` for the numbers of numbers that your final password will have

##### symbols
Type: `Boolean or Integer`<br>
Default: `5`<br>
All Symbols allowed: `!@#$%&*()_+-={}[]:;<>?,./|`

`true` or `false` if numbers are allowed<br>
`Integers` for the numbers of symbols that your final password will have

##### allowUppercase
Type: `Boolean`<br>
Default: `true`

`true` or `false` if Uppercase characters are allowed

##### allowRepetintion
Type: `Boolean`<br>
Default: `false`

`true` or `false` if your final password can have repetitive characters

## Tests
`npm test`

## Contributing
Please, check the [Contributing](CONTRIBUTING.md) documentation, there're just a few steps.

## Support or Contact

Having trouble? Or new ideas? Post a new issue! We will be glad to help you!

## License

[MIT License](http://luanmuniz.mit-license.org) © Luan Muniz

[ci-url]: https://github.com/luanmuniz/password-generator/actions/workflows/build
[ci-image]: https://github.com/luanmuniz/password-generator/actions/workflows/build.yml/badge.svg
[npm-image]: https://badge.fury.io/js/%40luanmuniz%2Fpassword-generator.svg
[npm-url]: https://npm.im/@luanmuniz/password-generator
[coverrals-image]: https://coveralls.io/repos/github/luanmuniz/password-generator/badge.svg?branch=master
[coverrals-url]: https://coveralls.io/github/luanmuniz/password-generator?branch=master
npm package: @luannguyenicsc/sdk
Description: 🛠 An SDK for building applications on top of Sunfishswap.
Author: vindaxdev
Latest version: 1.0.0


> **Notice**
>
> Moved to https://github.com/pancakeswap/pancake-frontend/tree/develop/packages/swap-sdk

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://docs.uniswap.org/sdk/2.0.0/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancake-swap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @luanroger/notion-astro-loader
Description: A fork of a fork of a Notion loader for the Astro Content Layer API.
Author: Luan Roger
Latest version: 1.1.1

# @luanroger/notion-astro-loader

> [!NOTE]  
> This is a fork version of [KiritoKing](https://github.com/KiritoKing/notion-astro-loader) Notion Loader, with updated Notion API (using data source) and Astro 5 support.

[Notion](https://developers.notion.com/) loader for the [Astro Content Collections](https://docs.astro.build/en/guides/content-collections). It allows you to load pages from a Notion data source then render them as pages in a collection.

## Installation

```sh
# npm
npm install @luanroger/notion-astro-loader --save-dev
# pnpm
pnpm add @luanroger/notion-astro-loader -D
# yarn
yarn add @luanroger/notion-astro-loader -D
# bun
bun add @luanroger/notion-astro-loader -D
```

## Usage

Here it will not show how to create a Notion integration and connect it to your database. Please refer to the [official Notion documentation](https://developers.notion.com/docs/getting-started) for that.

### 1. Get Notion API Token & data source ID

Create a `.env` file in the root of your project and add the following environment variables:

```sh
# /.env
NOTION_TOKEN=your-notion-token
NOTION_DATA_SOURCE_ID=your-data-source-id
```

### 2. Use the loader

In your `src/content.config.ts` use the Notion loader in an collection:

```ts
import { defineCollection } from 'astro:content';
import { notionLoader } from '@luanroger/notion-astro-loader';

const database = defineCollection({
  loader: notionLoader({
    auth: import.meta.env.NOTION_TOKEN,
    dataSourceId: import.meta.env.NOTION_DATA_SOURCE_ID,
    // Optional: tell loader where to store downloaded aws images, relative to 'src' directory
    // Default value is 'assets/images/notion'
    imageSavePath: 'assets/images/notion',
    // Use Notion sorting and filtering with the same options like notionhq client
    filter: {
      property: 'Hidden',
      checkbox: { equals: false },
    },
  }),
});

export const collections = { database };
```