open-index/open-npm huggingface dataset:
npm package: @placemarkio/polyline
Description: encode and decode polylines
Author: Tom MacWright
Latest version: 2.0.3

# @placemarkio/polyline

[![npm version](https://badge.fury.io/js/@placemarkio%2Fpolyline.svg)](https://badge.fury.io/js/@placemarkio%2Fpolyline)

```
@placemarkio/polyline
```

_polyline development is supported by 🌎 [placemark.io](https://placemark.io/)_

A maintained fork of the [Mapbox module](https://github.com/mapbox/polyline).

Differences:

- Written in TypeScript, with types provided.
- No dependencies.
- Always follows longitude, latitude order in all API endpoints.
  polylines are, internally, latitude, longitude, but that is not
  exposed to the user.

## [📕 API Documentation](https://placemark.github.io/polyline/)
npm package: @placemarkio/tokml
Description: Convert GeoJSON to KML
Author: Tom MacWright
Latest version: 0.3.9

# tokml

Convert GeoJSON to KML.

## Install

This package is [`@placemarkio/tokml`](https://www.npmjs.com/package/@placemarkio/tokml)

## [📕 API Documentation](http://tokml.docs.placemark.io/)

Notes:

- This method does not validate the GeoJSON inputs. Invalid FeatureCollections
  may produce an exception.
- GeoJSON properties can have any kind of value, including objects and arrays.
  KML properties are strings. Any non-string GeoJSON properties will be stringified
  with JSON.stringify when converting to KML.
npm package: @placeos/svg-viewer
Description: This library is a Typescript for interacting with SVG files
Author: Alex Sorafumo
Latest version: 1.0.5

# TypeScript SVG Viewer

This library is a Typescript for interacting with SVG files

## Compilation

You can build the library from source after installing the dependencies with the command

`npm run build`

## Usage

API docs can be found [here](https://placeos.github.io/svg-viewer)

You can install the library with the npm command

`npm install --save-dev @placeos/svg-viewer`

Before using the SVG you'll need to add the global styles it will need to be initialised.

```Typescript
import { applyGlobalStyles } from '@placeos/svg-viewer';

applyGlobalStyles();
```

To create a new viewer use the create method. A DOM element and URL are required to create. 
Available options are the fields defined in the [Viewer](./src/viewer.class.ts) class.

```Typescript
import { createViewer } from '@placeos/svg-viewer';

const element = document.querySelector('#my-svg-container');
const url = `https://my.domain/path/to/file.svg`;

const view_id = createViewer({
    element,
    url
});
```

To update the state of the viewer you can use the update method. Available options are the fields defined in the [Viewer](./src/viewer.class.ts) class.

```Typescript
import { updateViewer } from '@placeos/svg-viewer';

const view_id = 'id-of-my-viewer';
const zoom = 2; // 200% zoom
const center = { x: .75, y: .25 }; // 200% zoom

updateViewer(view_id, {
    zoom,
    center
});
```

When you are finished with the viewer you can cleanup using the remove method.


```Typescript
import { removeViewer } from '@placeos/svg-viewer';

const view_id = 'id-of-my-viewer';

removeViewer(view_id);
```

You can change the styles of the SVG by passing them to the update method.

```Typescript
import { updateViewer } from '@placeos/svg-viewer';

const view_id = 'id-of-my-viewer';
const style = {
    'my-css-seletor': {
        'background-color': 'white'
    }
};

updateViewer(view_id, { styles });
```

You can also listen to user events on the SVG by passing them to the update method.

```Typescript
import { updateViewer } from '@placeos/svg-viewer';

const view_id = 'id-of-my-viewer';
const actions = [
    { id: 'my-element-id', action: 'click', callback: (e) => doSomething() }
];

updateViewer(view_id, { actions });
```

You can also focus on points and elements in the SVG by passing them to the update method.

```Typescript
import { updateViewer } from '@placeos/svg-viewer';

const view_id = 'id-of-my-viewer';
let focus = { 
    location: { x: .6, y: .2 } 
};

updateViewer(view_id, { focus });

focus = { 
    location: 'my-element-id',
    zoom_level: 1.5
};

updateViewer(view_id, { focus });
```

Finally, you can also render HTML element over the SVG by passing them to the update method.


```Typescript
import { updateViewer } from '@placeos/svg-viewer';

const view_id = 'id-of-my-viewer';
const element = document.querySelector('#my-element-id');
const features = [
    { location: 'svg-element-id', content: element }
];

updateViewer(view_id, { features });
```
npm package: @placepass/broccoli-livereload
Description: Broccoli plugin for adding livereload capabilities
Author: Stefan Pfaffel
Latest version: 1.4.0

# Broccoli Livereload Plugin

[![Build Status](https://travis-ci.org/stfsy/broccoli-livereload.svg)](https://travis-ci.org/stfsy/broccoli-livereload)
[![Dependency Status](https://img.shields.io/david/stfsy/broccoli-livereload.svg)](https://github.com/stfsy/broccoli-livereload/blob/master/package.json)
[![DevDependency Status](https://img.shields.io/david/dev/stfsy/broccoli-livereload.svg)](https://github.com/stfsy/broccoli-livereload/blob/master/package.json)
[![Npm downloads](https://img.shields.io/npm/dm/broccoli-livereload.svg)](https://www.npmjs.com/package/broccoli-livereload)
[![Npm Version](https://img.shields.io/npm/v/broccoli-livereload.svg)](https://www.npmjs.com/package/broccoli-livereload)
[![Git tag](https://img.shields.io/github/tag/stfsy/broccoli-livereload.svg)](https://github.com/stfsy/broccoli-livereload/releases)
[![Github issues](https://img.shields.io/github/issues/stfsy/broccoli-livereload.svg)](https://github.com/stfsy/broccoli-livereload/issues)
[![License](https://img.shields.io/npm/l/broccoli-livereload.svg)](https://github.com/stfsy/broccoli-livereload/blob/master/LICENSE)

Broccoli plugin for adding livereload capabilities.

This plugin will inject the livereload script into the target html file and open a port to notify the script about changes. The plugin will **not** create a separate watcher. It relies on BroccoliJs's built in watcher and BroccoliFilter's caching functionality.

In case you only want to inject a livereload script you could use [Dremora's](https://github.com/Dremora) [broccoli-inject-livereload](https://github.com/Dremora/broccoli-inject-livereload) 

## Example using a single html target 
```js
const BroccoliLivereload = require('broccoli-livereload')

const reloadable = new BroccoliLivereload('app', {
    target: 'index.html'
})

module.exports = reloadable
```

## Example using a regular expression to target multiple html files
```js
const BroccoliLivereload = require('broccoli-livereload')

const reloadable = new BroccoliLivereload('app', {
    target: /^[a-zA-Z._-]+.html$/
})

module.exports = reloadable
```

## Example using a costum port

```js
const BroccoliLivereload = require('broccoli-livereload')

const reloadable = new BroccoliLivereload('app', {
    target: 'index.html', 
    options: {
        port: 12345
    }
})

module.exports = reloadable
```

## Installation

```js
npm install broccoli-livereload --save-dev
```

## License

This project is distributed under the MIT license.
npm package: @placepass/broccoli-typescript-compiler
Description: A Broccoli plugin which compiles TypeScript files.
Author: Kris Selden
Latest version: 4.1.1

# broccoli-typescript-compiler

[![Build Status](https://travis-ci.org/tildeio/broccoli-typescript-compiler.svg?branch=master)](https://travis-ci.org/tildeio/broccoli-typescript-compiler)
[![Build status](https://ci.appveyor.com/api/projects/status/xg70wjppvd3l7e50?svg=true)](https://ci.appveyor.com/project/embercli/broccoli-typescript-compiler)

A [Broccoli](https://github.com/broccolijs/broccoli) plugin which
compiles [TypeScript](http://www.typescriptlang.org) files.

## How to install?

```sh
$ npm install broccoli-typescript-compiler --save-dev
```

## How to use?

```js
var typescript = require("broccoli-typescript-compiler").default;
var cjsTree = typescript(inputTree, {
  tsconfig: {
    compilerOptions: {
      module: "commonjs",
      target: "es5",
      moduleResolution: "node",
      newLine: "LF",
      rootDir: "src",
      outDir: "dist",
      sourceMap: true,
      declaration: true,
    },
    files: ["src/index.ts", "src/tests/**"],
  },
  throwOnError: false,
  annotation: "compile program",
});
```

### Config Options:

`tsconfig:`

- default (when ommited): will find the nearest `tsconfig` relative to where the BroccoliTypeScriptCompiler is invoked.
- as string: a absolute path to a config tsconfig file
- as config object: See: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html

`annotation:`

An optional string, which when provide should be a descriptive annotation. Useful for debugging, to tell multiple instances of the same plugin apart.

`throwOnError`

An optional boolean, defaulting to `false`. If set to `true`, will cause the build to break on errors.

*note: if `process.env.NODE_ENV === 'production'` is true, `throwOnError` will default to `true`.*

### Ways to use:

## via the broccoli plugin subclass

This outputs only the emitted files from the compiled program.

```js
const { TypescriptCompiler } = require("broccoli-typescript-compiler");
let compiled = new TypescriptCompiler(input, options);
```

## via function

This outputs only the emitted files from the compiled program.

```js
const { default: typescript } = require("broccoli-typescript-compiler");

let compiled = typescript(src, options);
```

## filter function (passthrough non .ts files)

This selects only ts files from the input to compile and merges emitted files with the non ts files in the input.

```js
const { filterTypescript } = require("broccoli-typescript-compiler");
let output = filterTypescript(input, options);
```

## Development

### How to upgrade `typescript`

1. Update `typescript` in `package.json`
2. Run `yarn run generate-tsconfig-interface`
3. Update `vendor/typescript`. `cd vendor/typescript && git fetch --tags && git checkout v[new-version-of-typescript]`
4. Commit all of the above changes
5. Run `yarn test`. There may be some changes needed to the tests to accomidate changes in TypeScript.
npm package: @placetopay/flate
Description: Flate is a base styling for web apps used in PlacetoPay. Flate is a plugin for tailwindcss framework.
Author: Eduardo Guzmán
Latest version: 0.2.0

# Flate

Flate is a base styling for web apps used in PlacetoPay. Flate is a plugin for tailwindcss framework.

**Docs:** [Flate - Design Base for PlacetoPay](https://www.notion.so/Flate-Design-Base-for-PlacetoPay-51e61cbcc3b84495989fe10be7c077d9)
 
**WIP** This is a very work in progress
npm package: @placetopay/iframe-on-boarding
Description: Incorporation of iframe to give continuity to the identity validation allowing to keep the user within the same app or web page
Latest version: 0.1.0-beta.2

#Iframe for OnBoarding by Evertec-Placetopay

With this library you can make a faster integration by using the api that allows you to start an identity validation and that is described [here](https://evertec-onboarding.stoplight.io/docs/onboarding-api-docs/OnBoarding.v1.yaml)

##Quick start

* Install with npm: 

    npm install @placetopay/iframe-on-boarding

##Usage from node
The value of the url parameter is the url delivered in the response when requesting an identity validation in the [api](https://evertec-onboarding.stoplight.io/docs/onboarding-api-docs/OnBoarding.v1.yaml/paths/~1request/post)
```
onboarding = require('@placetopay/iframe-on-boarding');
onboarding.addIframe(url);
```
npm package: @placetopay/pinpad-rest-front
Description: This project provides a PinPad.
Latest version: 0.0.2

# PinPad

A PIN pad or PIN entry device (PED) is an electronic device used in a debit, credit or smart card-based transaction 
to accept and encrypt the cardholder's personal identification number (PIN).

This API provides a **PinPad SDK** service with PinBlock generation encrypted 
according to [ISO 9564](https://en.wikipedia.org/wiki/ISO_9564), the data required for PinBlock generation 
are as follows:

-  **PIN:**   number digits by the cardholder 4-12 length, 
   refer [PIN](https://en.wikipedia.org/wiki/Personal_identification_number) to more information.

-  **Format:**   format to apply to the pin, can be 0, 1, 2 or 3 more info [ISO 9564](https://en.wikipedia.org/wiki/ISO_9564)

## Installation

```bash
 npm i @placetopay/pinpad-rest-front
```

## Usage


### Init the PinPad JavaScript SDK  

For the PinPad will be succesfully loaded, you must initialize the sdk as shown below:

```javascript
  import PinPad from '@placetopay/pinpad-rest-front'

  let pad = new PinPad({
      format: 0, // may be 0,1,2 or 3
      locale: document.documentElement.lang // language to display
  })
```
### Render the PinPad 

For render the Pinpad, the PinPad JavaScript SDK provides a funtion `render(div_id, PAN)`. the `div_id` property es the PinPad DOM element id defined earlier, the `PAN` property is the card number digited by user (required only formats by 0 and 3)

Render the PinPad as shown below:

  ```javascript
    pad.render('my-PinPad-id', 'positions')
  ```