open-index/open-npm huggingface dataset:
npm package: @palmabit/etn-vendor-payment
Description: A web component to generate Payment String as QR for Electroneum (ETN) instant payment API
Author: Francesco Falanga
Latest version: 0.0.3

# etn-vendor-payment

<etn-vendor-payment> is a web component for generating Electroneum payment string and display it as QR code for the customer to scan using the Electroneum app on their mobile device.

Features:

* Dependency-free
* HTML Custom element with shadow DOM

## Installation

```
npm install
```

## Usage

import the module

```
<script type="module">
import './node_modules/etn-vendor-payment/index.js';
</script>
```

Put the <etn-vendor-payment></etn-vendor-payment> component in your markup wherever you want it to appear.

Exmplate:

```
<etn-vendor-payment outledId="5ba657721ca5b" paymentId="7ce25b4dc0" amount="100"></etn-vendor-payment>
```

The payment string is made up of the following parameters:

```
{outletId}/{paymentIdd}/{amount}
```

For more info see the ETN instant payment API docs: [etn api guide]()


## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D


## Credits

* [Palmabit](https://www.palmabit.com) - Sponsor

## License

MIT. See [LICENCE](./LICENCE)
npm package: @palmabit/joi-max-words
Description: Joi extension for max words
Author: Palmabit Srl
Latest version: 0.0.4


[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)

[![Build Status](https://travis-ci.org/Palmabit-IT/joi-max-words.svg?branch=master)](https://travis-ci.org/Palmabit-IT/joi-max-words)

# DEPRECATED

This is no longer supported, please use https://github.com/Palmabit-IT/joi-words-extension instead.

# Install

```js
npm install @palmabit/joi-max-words
```

# Usage

Usage is a two steps process. First, a schema is constructed using the provided types and constraints:

```js
const BaseJoi = require('joi');
const Extension = require('@palmabit/joi-max-words');
const Joi = BaseJoi.extend(Extension);

const schema = Joi.string().maxWords(500);
```
npm package: @palmabit/joi-words-extension
Description: Joi extension for words
Author: Palmabit Srl
Latest version: 0.1.3

[![Build Status](https://travis-ci.org/Palmabit-IT/joi-words-extension.svg?branch=master)](https://travis-ci.org/Palmabit-IT/joi-words-extension)

# Joi Words Extension

Joi extensions for words.

# Install

```js
npm install @palmabit/joi-words-extension
```

# Usage

Usage is a two steps process. First, a schema is constructed using the provided types and constraints:

```js
const BaseJoi = require('joi');
const Extension = require('@palmabit/joi-words-extension');
const Joi = BaseJoi.extend(Extension);

const schema = Joi.string().minWords(100).maxWords(500);
```
npm package: @palmabit/lambda-mongo-crud
Description: Crud with mongoDb-native and RBAC role/permission for AWS Lambdas
Author: Palmabit
Latest version: 1.1.2

# lambda mongo crud

[![Build Status](https://travis-ci.org/Palmabit-IT/lambda-mongo-crud.svg?branch=master)](https://travis-ci.org/Palmabit-IT/lambda-mongo-crud)

Crud with mongoDb-native and RBAC role/permission for AWS Lambdas

## Installation

```
npm install @palmabit/lambda-mongo-crud --save
```

## Usage

```js
const Crud = require('@palmabit/lambda-mongo-crud')

const roles = {
    base: {
        can: ['posts:list','posts:get']
    },
    admin: {
        can: ['posts:save','posts:delete']
    }
}

const crud = new Crud('stringConnection','tableName','admin',roles)

const query = {}
const roleOptions = {}

crud.list(query,'posts:list',roleOptions, (err,docs) => {} )

```

## Tests

Start MongoDb locally.

```
npm test
```

### Coverage

Start MongoDb locally.

```
npm run-script test-travis
```

## Author

[Palmabit](https://palmabit.com)

## License

[MIT license](LICENSE)
npm package: @palmabit/onesignal-notification
Description: OneSignal Notification API wrapper
Author: Palmabit
Latest version: 1.0.0


# OneSignal Nodejs Notification api wrapper

[![Tests](https://travis-ci.org/Palmabit-IT/onesignal-notification.svg?branch=master)](https://travis-ci.org/Palmabit-IT/onesignal-notification)

This is an unofficial wrapper/client for the [OneSignal notification API](https://documentation.onesignal.com/reference#create-notification) that runs on Node.JS. 
A list of selected wrappers for different languages and environments is available at the Developer site's Libraries page.


## Installation

`$ npm install @palmabit/onesignal-notification`

## Usage

```
const OnesignalNotificationApi = require('@palmabit/onesignal-notification')
const oneSignal = new OnesignalNotificationApi('MY-REST-KEY', 'APP-ID')

const message = {
  it: 'Some message',
  en: 'Some message'
}

oneSignal.sendToAll(message, null, null, (err, res) => {
  console.log(err)
  console.log(res)
})
```

## API

### sendToAll

```
const OnesignalNotificationApi = require('@palmabit/onesignal-notification')
const oneSignal = new OnesignalNotificationApi('MY-REST-KEY', 'APP-ID')
oneSignal.sendToAll(message, options, action, (err, res) => {
  console.log(err)
  console.log(res)
})
```

### sendToSegment

```
const OnesignalNotificationApi = require('@palmabit/onesignal-notification')
const oneSignal = new OnesignalNotificationApi('MY-REST-KEY', 'APP-ID')
oneSignal.sendToSegments(message, ['segment1', 'segment2], (err, res) => {
  console.log(err)
  console.log(res)
})
```

### sendToDevices

//Coming Soon

### ...

## Test

`npm test`

### Coverage

`npm run coverage`

## Development

See something you think can be improved? [Open an issue](https://github.com/Palmabit-IT/onesignal-notification/issues/new) or clone the project and send a pull request with your changes.

## Author

[Palmabit](https://palmabit.com)

## License

[MIT license](LICENSE)