open-index/open-npm huggingface dataset:
npm package: @leodog896/svelte-french-toast
Description: Buttery smooth Svelte toasts. Lightweight, customizable, and beautiful by default.
Author: Kabir Goel
Latest version: 1.3.1

<img src="./header-image.png" alt="" />
<p align="center">
<img src="https://badgen.net/badge/license/MIT/blue" />
<img src="https://badgen.net/npm/v/svelte-french-toast" />
</p>
<p align="center">
<a href="https://svelte-french-toast.vercel.app">Website</a> · <a href="https://npmjs.com/package/svelte-french-toast">NPM Package</a>
</p>

# svelte-french-toast

> Buttery smooth Svelte notifications.

svelte-french-toast is a Svelte port of Timo Lins’s react-hot-toast, a lightweight, customizable, and beautiful-by-default toast notification library.

## Installation

Install the package with your favorite package manager:

```
npm install svelte-french-toast
```

```
pnpm install svelte-french-toast
```

```
yarn add svelte-french-toast
```

## Basic usage

Mount a `<Toaster />` at the top level of your app and use the `toast` API to display toasts.

```js
<script>
	import toast, {Toaster} from 'svelte-french-toast'

	function handleClick() {
		toast.success('Hello, world!')
	}
</script>

<Toaster />
<button type="button" on:click={handleClick}>Toast</button>
```

For more usage examples, see [the website](https://svelte-french-toast.vercel.app).

## Thanks

Thanks to the original author of React Hot Toast and its contributors.

```
MIT License

Copyright (c) 2020 Timo Lins

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: @leodog896/vigenere-cipher
Description: Pure TS vigenere cipher implementation
Latest version: 0.0.1

# vigenere cipher

deno implementation of the vigenere cypher in typescript.

Available via deno ([`vigenere_cipher`](https://deno.land/x/vigenere_cipher)) or node ([`@leodog896/vigenere-cipher`](https://npmjs.com/package/@leodog896/vigenere-cipher))

```ts
import { encrypt, decrypt } from "https://deno.land/x/vigenere_cipher"; // with npm: @leodog896/vigenere-cipher

const encrypted = encrypt("This is a test", "deNo") // "Wlvg lw n hhwg"
const decrypted = decrypt("Wlvg lw n hhwg", "deNo") // "THis is a test"
```
npm package: @leoendless/swagger-to-graphql
Description: Swagger2GraphQL converts your existing Swagger schema to GraphQL types where resolvers perform HTTP calls to certain real endpoints. It allows you to move your API to GraphQL with nearly zero effort and maintain both REST and GraphQL APIs.
Author: Roman Krivtsov
Latest version: 1.8.0

# Swagger2GraphQL

Swagger2GraphQL converts your existing Swagger schema to GraphQL types where resolvers perform HTTP calls to certain real endpoints.
It allows you to move your API to GraphQL with nearly zero effort and maintain both REST and GraphQL APIs.

<a href="https://medium.com/@raxwunter/moving-existing-api-from-rest-to-graphql-205bab22c184">Why?</a>

*Looking for contributors!*

# Usage

## Basic server

```js
const express = require('express');
const app = express();
const graphqlHTTP = require('express-graphql');
const graphQLSchema = require('swagger-to-graphql');

const proxyUrl = 'http://petstore.swagger.io/v2';
const pathToSwaggerSchema = './petstore.json';
const customHeaders = {
  // Authorization: 'Basic YWRkOmJhc2ljQXV0aA=='
}

graphQLSchema(pathToSwaggerSchema, proxyUrl, customHeaders).then(schema => {
  app.use('/graphql', graphqlHTTP(() => {
    return {
      schema,
      graphiql: true
    };
  }));

  app.listen(3009, 'localhost', () => {
    console.info('http://localhost:3009/graphql');
  });
}).catch(e => {
  console.log(e);
});
```

Constructor (graphQLSchema) arguments:
* `pathToSwaggerSchema` (string) is a path or URL to your swagger schema file. *required*
* `proxyUrl` (string) base URL which will be used to hit your HTTP API. Can be taken either from Swagger schema `baseUrl` configuration or from this parameter.
* `customHeaders` (object) key value object of custom headers, which should be included to the HTTP request. Can be used for example for authorization (look at the example above)

## CLI usage

You can use the library just to convert schemas without actually running server

```
npm i -g swagger-to-graphql
swagger-to-graphql --swagger=/path/to/swagger_schema.json > ./types.graphql
```

## Video from O.J. Sousa Rodrigues at Vienna.JS
<a href="https://www.youtube.com/watch?v=551gKWJEsK0&feature=youtu.be&t=1269" target="_blank"><img src="https://s3.eu-central-1.amazonaws.com/yarax-public-assets/2019-02-13_13-01-45.png"/></a>


![Build Status](https://travis-ci.org/yarax/swagger-to-graphql.svg?branch=master)
npm package: @leofavre/elmnt
Description: Yet another abstraction layer for creating web components.
Author: Leonardo Favre
Latest version: 1.4.0

# Elmnt

### Yet another abstraction layer for creating web components.

[![Build Status](https://travis-ci.com/leofavre/elmnt.svg?branch=master)](https://travis-ci.com/leofavre/elmnt) [![Coverage Status](https://coveralls.io/repos/github/leofavre/elmnt/badge.svg?branch=master)](https://coveralls.io/github/leofavre/elmnt?branch=master)

Elmnt is an abstraction layer that lets you set and reflect attributes and properties on web components and react to their changes.

One key difference from other libraries is that it doesn't assume that attributes always derive from properties. It also doesn't delay changes from being applied.

Elmnt comes with a set of decorators that can be combined to add common functionalities like dispatching DOM Events or handling state like React does.