open-index/open-npm huggingface dataset:
npm package: @flourish/express-busboy
Description: Busboy for express, mimics the old bodyParser
Author: Dav Glass
Latest version: 7.0.1

express-busboy
--------------

A simple `body-parser` like module for express that
uses [`connect-busboy`](https://github.com/mscdex/connect-busboy) under the hood.

It's designed to be more of a "drop in" replacement for `body-parser`.
With it populating `req.body`, there is very minimal code change needed to use it.

usage
-----

```js
var bb = require('express-busboy');
var app = express();

bb.extend(app);
```

The module will populate `req.body` and `req.files` like the `body-parser` module does.

configuration
-------------

```js
bb.extend(app, {
    //options can go here
});
```

By default this module will create an `Array` when it finds multiple fields with the
same name in the POST parameters. You can set `restrictMultiple` to `true` to 
not parse mutiple POST values into `Array`'s

file uploads
------------

By default file uploads are disabled, the `req.files` object will always be empty. You can activate them with:

```js
bb.extend(app, {
    upload: true,
    path: '/path/to/save/files',
    allowedPath: /./
});
```

`path` will default to: `os.tmpdir()/express-busboy/<uuid>/<the field name>/<filename>`.

allowedPath can contain a regular expression limiting the upload function to given urls. For example `/^\/upload$/` would only allow uploads in the /upload path.


You can have a function returning true/false if you prefer that:

```js
options.allowedPath = function(url) {
    return url == '/upload';
}
```

You can restrict uploads to specific mimetypes as well:

```js
options.mimeTypeLimit = [
    'text/x-markdown',
    'application/javascript',
    'image/jpeg',
    'image/png'
];
```

When files are not uploaded due to path or mimetype checks, no error is returned (so the other data in the request can be handled) the restricted item
will simply not appear in the `req.files` `Object`.

build
-----

[![Build Status](https://travis-ci.org/yahoo/express-busboy.svg?branch=master)](https://travis-ci.org/yahoo/express-busboy)
npm package: @flourish/smooth-resize
Description: Smoothly animated window resizing
Author: Kiln Enterprises Ltd
Latest version: 0.2.1

# Smooth animations while the window is being resized

Responsive online graphics may need to update in response to changes in window
size. It’s common to do this by listening for the `resize` event on the window
object, but this results in a choppy effect since the resize event is not
triggered frequently enough for a smooth animation.

This module makes it easy to implement smooth resize animations. While the window
is being resized it uses `requestAnimationFrame` to run your drawing function
at a (hopefully) decent frame rate.

It’s designed to be used with an ES6 module bundler such as [rollup.js](http://rollupjs.org/)
with [rollup-plugin-node-resolve](https://github.com/rollup/rollup-plugin-node-resolve):

```
import smoothResize from "smooth-resize";

smoothresize(function(width, height) {
	// Redraw at the specified size
});
```

or you can include a self-contained version directly in your HTML:

```
<script src="https://cdn.flourish.rocks/smooth-resize-v0.min.js"></script>
```

It’s self-contained and tiny. Even the non-minified version is smaller than 1k.

It was developed for use in [Flourish](https://flourish.studio) templates, but it’s
open source and you can use it for anything.