open-index/open-npm huggingface dataset:
npm package: @kchungradio/slugify
Description: Slugify a string
Author: Sindre Sorhus
Latest version: 0.3.0

# slugify [![Build Status](https://travis-ci.org/sindresorhus/slugify.svg?branch=master)](https://travis-ci.org/sindresorhus/slugify)

> Slugify a string

Useful for URLs, filenames, and IDs.


## Install

```
$ npm install @sindresorhus/slugify
```


## Usage

```js
const slugify = require('@sindresorhus/slugify');

slugify('I ♥ Dogs');
//=> 'i-love-dogs'

slugify('  Déjà Vu!  ');
//=> 'deja-vu'

slugify('fooBar 123 $#%');
//=> 'foo-bar-123'

slugify('BAR and baz', {separator: '_'});
//=> 'bar_and_baz'

slugify('I ♥ 🦄 & 🐶', {
  customReplacements: [
    ['🐶', 'dog']
  ]
});
//=> 'i-love-unicorn-and-dog'
```

## API

### slugify(input, [options])

#### input

Type: `string`

#### options

Type: `Object`

##### separator

Type: `string`<br>
Default: `-`

##### customReplacements

Type: `Array`<br>
Default: `[
  ['&', 'and'],
  ['🦄', 'unicorn'],
  ['♥', 'love']
]`

Specifying this only replaces the default if you set an item with the same key, like `&`.


## Related

- [slugify-cli](https://github.com/sindresorhus/slugify-cli) - CLI for this module
- [filenamify](https://github.com/sindresorhus/filenamify) - Convert a string to a valid safe filename


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)
npm package: @kcirtaptrick/framer-motion
Description: A simple and powerful React animation library
Author: Framer
Latest version: 6.2.9

<p align="center">
  <img src="https://user-images.githubusercontent.com/22095598/123793419-f5528800-d8e1-11eb-8c5f-e2dad45a9c81.png" width="108" height="108" alt="Framer Motion" />
</p>
<h1 align="center">Framer Motion</h1>
<h3 align="center">
  An open source and production-ready motion<br>library for React on the web.
</h3>

<br>

<p align="center">
  <a href="https://www.npmjs.com/package/framer-motion" target="_blank">
    <img src="https://img.shields.io/npm/v/framer-motion.svg?style=flat-square" />
  </a>
  <a href="https://www.npmjs.com/package/framer-motion" target="_blank">
  <img src="https://img.shields.io/npm/dm/framer-motion.svg?style=flat-square" />
  </a>
  <a href="https://twitter.com/framer" target="_blank">
  <img src="https://img.shields.io/twitter/follow/framer.svg?style=social&label=Follow"  />
  </a>
  <a href="https://discord.gg/DfkSpYe" target="_blank">
  <img src="https://img.shields.io/discord/308323056592486420.svg?logo=discord&logoColor=white" alt="Chat on Discord">
  </a>
</p>

<br>

Framer Motion is an open source, production-ready library that's designed for all creative developers.

It looks like this:

```jsx
<motion.div animate={{ x: 0 }} />
```

It does all this:

-   Springs
-   Keyframes
-   Layout animations
-   Shared layout animations
-   Gestures (drag/tap/hover)
-   SVG paths
-   Exit animations
-   Server-side rendering
-   Orchestrate animations across components
-   CSS variables

...and a whole lot more.

## Get started

### 🐇 Quick start

```
npm install framer-motion
```

```jsx
import { motion } from "framer-motion"

export const MyComponent = ({ isVisible }) => (
    <motion.div animate={{ opacity: isVisible ? 1 : 0 }} />
)
```

### 📚 Docs

Check out [our documentation](https://www.framer.com/docs/) for guides and a full API reference.

Or checkout [our examples](https://www.framer.com/docs/examples/) for inspiration.

### 🛠 Contribute

Want to contribute to Framer Motion? Our [contributing guide](https://github.com/framer/motion/blob/master/CONTRIBUTING.md) has you covered.

### 👩🏻‍⚖️ License

Framer Motion is MIT licensed.

## Framer

Get on the same page as your designers before production. Get started with [design and prototyping in Framer](https://www.framer.com/).
npm package: @kckckc/amalgam
Description: Filter and measure timestamped events
Author: kckckc
Latest version: 1.0.4

# Amalgam

Collect, filter, and count timestamped events.

## Usage

Import:

```js
import EventStack from '@kckckc/amalgam'
const stack = new EventStack()
```

Add events:

```js
// with timestamp
stack.insert(1651627042430, { type: 'a', value: 123 })
// with current time
stack.add({ type: 'b', value: 456 })
```

Find or count events:

```js
// Most recent is returned first
stack.find()
/* =>
[
	{ timestamp: 50000, data: { value: 456 } },
	{ timestamp: 40000, data: { value: 123 } },
]
*/

stack.count() // => 2
```

Filter events:

```js
stack.count({ where: { type: { $eq: 'a' } } }) // => 1

stack.count({
	whereAll: {
		'dot.path.to.prop': {
			$eq: value,
			$lt: value
			$lte: value
			// + gt, gte, in, nin, neq
		}
	},
	whereSome: {
		// ...
	},
	where: (item) => item.value === 'hello' // custom filter function
	before: 1234567, // events before timestamp
	after: 1234567, // events after timestamp
	recent: 5000, // events in the last 5000 ms
	afterEvent: {
		// ... another filter, to stop once this item is reached ...
		whereAll: {...}
		// ...
	}
})
```

`afterEvent` example:

```js
stack.add({});
stack.add({});
stack.add({ type: 'reset' });
stack.add({});
stack.add({});
stack.count({ afterEvent: { where: (i) => i.type === 'reset' });
// => 2
```

Group events:

```js
stack.findGrouped({
	// ... other filter options ...
	groupBy: 'path.to.prop', // property to group by
	group: (item) => item.type, // custom group function
})

stack.countGrouped({ ... })
```
npm package: @kckckc/isleward-map-gen
Description: Generates Isleward map images from spritesheets, map data, and clientConfig
Latest version: 2.0.7

# Isleward map image generator

Generates Isleward map images from spritesheets, map data, and clientConfig

## Todo

* Handle spritesheet downloading (from iwd server automatically?)
* Handle hiddenRooms/interior hiders

## Usage

Programmatic: `setClientConfig(clientConfig)`, `renderMap(dataFromOnGetMap, outpath, options)`

Manually getting data:
- Download spritesheets
- `addons.events.on('onGetMap', (e) => console.log(JSON.stringify(e)))` then enter map
- `require(['js/system/globals'], (g) => {console.log(JSON.stringify(g.clientConfig))})`

Run: `yarn && yarn dev`

## Misc

* Types generated with [json2ts](http://json2ts.com/) (neat!)