open-index/open-npm huggingface dataset:
npm package: @1-week/pupa
Description: Simple micro templating
Author: Sindre Sorhus
Latest version: 3.1.3

# pupa

> Simple micro templating

Useful when all you need is to fill in some placeholders.

## Install

```sh
npm install pupa
```

## Usage

```js
import pupa from 'pupa';

pupa('The mobile number of {name} is {phone.mobile}', {
	name: 'Sindre',
	phone: {
		mobile: '609 24 363'
	}
});
//=> 'The mobile number of Sindre is 609 24 363'

pupa('I like {0} and {1}', ['🦄', '🐮']);
//=> 'I like 🦄 and 🐮'

// Double braces encodes the HTML entities to avoid code injection.
pupa('I like {{0}} and {{1}}', ['<br>🦄</br>', '<i>🐮</i>']);
//=> 'I like &lt;br&gt;🦄&lt;/br&gt; and &lt;i&gt;🐮&lt;/i&gt;'
```

Note: It does not support nesting placeholders: `pupa('{phone.{type}}', …)`

## API

### pupa(template, data, options?)

#### template

Type: `string`

Text with placeholders for `data` properties.

#### data

Type: `object | unknown[]`

Data to interpolate into `template`.

The keys should be a valid JS identifier or number (`a-z`, `A-Z`, `0-9`).

#### options

Type: `object`

##### ignoreMissing

Type: `boolean`\
Default: `false`

By default, Pupa throws a `MissingValueError` when a placeholder resolves to `undefined`. With this option set to `true`, it simply ignores it and leaves the placeholder as is.

##### transform

Type: `((data: {value: unknown; key: string}) => unknown) | undefined` (default: `({value}) => value`)

Performs arbitrary operation for each interpolation. If the returned value was `undefined`, it behaves differently depending on the `ignoreMissing` option. Otherwise, the returned value will be interpolated into a string (and escaped when double-braced) and embedded into the template.

### MissingValueError

Exposed for instance checking.

## FAQ

### What about template literals?

Template literals expand on creation. This module expands the template on execution, which can be useful if either or both template and data are lazily created or user-supplied.

## Related

- [pupa-cli](https://github.com/sindresorhus/pupa-cli) - CLI for this module
npm package: @1-week/qqmap-wx-jssdk
Description: 微信小程序 腾讯地图sdk v1.2
Author: Jonny Chen
Latest version: 1.4.3

# qqmap-wx-jssdk

腾讯地图 微信小程序 js SDK v1.2

## 安装

```
npm install @jonny1994/qqmap-wx-jssdk --save
# or
yarn add @jonny1994/qqmap-wx-jssdk -S
```

## 使用

```js
import QQMapWX from "@jonny1994/qqmap-wx-jssdk";

qqmapsdk = new QQMapWX({
  key: "申请的key",
  useGetFuzzyLocation: true // 使用 `wx.getFuzzyLocation` 替换 `wx.getLocation`
});
```

## 其他 API

参考[腾讯地图微信小程序 jsSDK 文档](http://lbs.qq.com/qqmap_wx_jssdk/index.html)
npm package: @1000ch/eslint-config-react
Description: ESLint config
Author: 1000ch
Latest version: 1.11.0

# eslint-config-react

[![Build Status](https://travis-ci.org/1000ch/eslint-config-react.svg?branch=master)](https://travis-ci.org/1000ch/eslint-config-react)
[![devDependency Status](https://david-dm.org/1000ch/eslint-config-react/dev-status.svg)](https://david-dm.org/1000ch/eslint-config-react#info=dev)
[![peerDependency Status](https://david-dm.org/1000ch/eslint-config-react/peer-status.svg)](https://david-dm.org/1000ch/eslint-config-react#info=peer)

## Install

```sh
npm install --save-dev @1000ch/eslint-config-react
```

## Usage

In `.eslintrc`:

```json
{
  "extends": [
    "@1000ch/eslint-config-react",
    "@1000ch/eslint-config-react/jsx-a11y"
  ]
}
```

In `package.json`:

```json
{
  "eslintConfig": {
    "extends": [
      "@1000ch/eslint-config-react",
      "@1000ch/eslint-config-react/jsx-a11y"
    ]
  }
}
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)
npm package: @1000ch/html-escape
Description: Escape HTML special charactors.
Author: 1000ch
Latest version: 1.0.0

# html-escape [![Build Status](https://travis-ci.org/1000ch/html-escape.svg?branch=master)](https://travis-ci.org/1000ch/html-escape)

Escape HTML special characters.

## Install

```sh
$ npm install 1000ch/html-escape
```

## Usage

```javascript
const escapeHTML = require('html-escape');

escapeHTML('<html></html>');
// => &lt;html&gt;&lt;/html&gt;
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)
npm package: @1000ch/html-unescape
Description: Unescape HTML special charactors.
Author: 1000ch
Latest version: 1.0.0

# html-unescape [![Build Status](https://travis-ci.org/1000ch/html-unescape.svg?branch=master)](https://travis-ci.org/1000ch/html-unescape)

Unescape HTML special characters.

## Install

```sh
$ npm install 1000ch/html-unescape
```

## Usage

```javascript
const unescapeHTML = require('html-unescape');

unescapeHTML('&lt;html&gt;&lt;/html&gt;');
// => <html></html>
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)
npm package: @1000ch/load-script
Description: Load a script file with script element
Author: 1000ch
Latest version: 0.1.0

# load-script

Load a script file with script element.

## Install

```bash
$ npm install --save @1000ch/load-script
```

## Usage

```javascript
import loadScript from '@1000ch/load-script';

(async () => {
  await loadScript('./foo.js');

  await Promise.all([
    loadScript('./bar.js'),
    loadScript('./baz.js')
  ]);
})();
```

## License

[MIT](https://1000ch.mit-license.org) © [Shogo Sensui](https://github.com/1000ch)