open-index/open-npm huggingface dataset:
npm package: @financial-times/origami-workshop
Description: JavaScript and Sass build tools to facilitate the Origami manual build tutorial (https://origami.ft.com/documentation/tutorials/manual-build/). Origami Workshop is not meant for production use.
Latest version: 3.0.3

# Origami Workshop Build Tools

JavaScript and Sass build tools to facilitate the [Origami manual build tutorial](https://origami.ft.com/documentation/tutorials/manual-build/). This is not meant for production use.

## Usage

Origami Workshop is a single command with no options. For detailed usage instructions, follow the [Origami manual build tutorial](https://origami.ft.com/documentation/tutorials/manual-build/).

## What does it do?

- Creates a `public` directory if one does not already exist.
- Bundles `src/main.js` on change with [esbuild](https://esbuild.github.io/) to `public/main.js`.
_Note: this resolves imports but does not transpile JS for wider browser support._
- Builds `src/main.scss` on change with [dart-sass](https://github.com/Financial-Times/sass), [postcss](https://github.com/postcss/postcss/), and [autoprefixer](https://github.com/postcss/autoprefixer) to `public/main.css`.
- Copies `index.html` on change to `public/index.html`.
- Starts a server for the public directory at http://localhost:3000. Another port is used if 3000 is taken.

## Contact

If you have any questions or comments about this project, or need help using it, please either [raise an issue](https://github.com/Financial-Times/origami-workshop/issues), visit [#origami-support](https://financialtimes.slack.com/messages/origami-support/) or email [Origami Support](mailto:origami-support@ft.com).

----

## License

Copyright (c) 2020 Financial Times Ltd. All rights reserved.

This software is published under the [MIT licence](http://opensource.org/licenses/MIT).
npm package: @financial-times/polyfill-useragent-normaliser
Description: The user-agent normalisation logic behind polyfill-library and polyfill.io
Latest version: 1.10.2
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# polyfill.io User Agent normaliser

This is the VCL & JS implementation of the User-Agent normalisation used within the [polyfill-service](https://github.com/Financial-Times/polyfill-service) and the [polyfill-library](https://github.com/Financial-Times/polyfill-library).

# Usage

For a request which was the user-agent Chrome 71.1:

# Example in VCL
```vcl
import "normalise-user-agent.vcl";

sub vcl_recv {
  call normalise_user_agent_1_0_6;
#   req.http.normalized_user_agent_family = "chrome";
#   req.http.normalized_user_agent_major_version = "71";
#   req.http.normalized_user_agent_minor_version = "1";
#   req.http.normalized_user_agent_patch_version = "0";
#   req.http.Normalized-User-Agent = "chrome/71.1.0";
}
```

# Example in JS

```js
const UA = require('@financial-times/polyfill-useragent-normaliser');

const useragent = new UA(request.headers['user-agent']);
console.log(useragent.isUnknown()); // false
console.log(useragent.satisfies("<50")); // false
console.log(useragent.satisfies(">50")); // true
```
npm package: @financial-times/pretty
Description: Some tweaks for beautifying HTML with js-beautify according to my preferences.
Author: Jon Schlinkert
Latest version: 3.0.1
Deprecated: This package is no longer supported

# pretty [![NPM version](https://img.shields.io/npm/v/pretty.svg?style=flat)](https://www.npmjs.com/package/pretty) [![NPM monthly downloads](https://img.shields.io/npm/dm/pretty.svg?style=flat)](https://npmjs.org/package/pretty) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/pretty.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/pretty)

> Some tweaks for beautifying HTML with js-beautify according to my preferences.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save pretty
```

Install with [yarn](https://yarnpkg.com):

```sh
$ yarn add pretty
```

## Usage

```js
var pretty = require('pretty');

pretty(STRING_OF_HTML);
```

Before

```html
<!DOCTYPE html> <html lang="en"> <head> 
<meta charset="UTF-8"> <title>Home</title> 
</head> <body> This is content. </body> </html>
```

After

```html
<!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Home</title>
  </head>
  <body>
    This is content.
  </body>
</html>
```

## Options

### extra

```js
pretty(STRING_OF_HTML, {extra: true});
```

**Type**: `Boolean`

**Default**: `undefined`

* condenses multiple newlines to a single newline
* trims leading and trailing whitespace
* ensures that a trailing newline is inserted
* normalizes whitespace before code comments

## About

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

### Building docs

_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_

To generate the readme, run the following command:

```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

### Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

```sh
$ npm install && npm test
```

### Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)

### License

Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.5.0, on April 13, 2017._