# require-as-template-string

> [![travis-build-status](https://travis-ci.org/christian-fei/require-as-template-string.svg?branch=master)](https://travis-ci.org/christian-fei/require-as-template-string) [![npm-dependencies](https://img.shields.io/badge/dependencies-none-blue.svg?style=f

Latest version **0.0.3** (published 2017-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install require-as-template-string
pnpm add require-as-template-string
yarn add require-as-template-string
bun add require-as-template-string
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-02-21 |
| First published | 2017-02-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | christian_fei |

## Links

- npm: https://www.npmjs.com/package/require-as-template-string
- Repository: https://github.com/christian-fei/require-as-template-string
- Homepage: https://github.com/christian-fei/require-as-template-string#readme
- Issues: https://github.com/christian-fei/require-as-template-string/issues
- npm.io page: https://npm.io/package/require-as-template-string

## Recent versions

- 0.0.3 (latest) — 2017-02-21
- 0.0.2 — 2017-02-20
- 0.0.1 — 2017-02-20

## README

[![travis-build-status](https://travis-ci.org/christian-fei/require-as-template-string.svg?branch=master)](https://travis-ci.org/christian-fei/require-as-template-string)
[![npm-dependencies](https://img.shields.io/badge/dependencies-none-blue.svg?style=flat-square&colorB=44CC11)](package.json)
[![standard-js](https://img.shields.io/badge/coding%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)
[![npm-node-version](https://img.shields.io/badge/node-6%2B-blue.svg?style=flat-square)](https://nodejs.org/docs/v6.0.0/api)
[![npm-version](https://img.shields.io/npm/v/require-as-template-string.svg?style=flat-square&colorB=007EC6)](https://www.npmjs.com/package/require-as-template-string)
[![license](https://img.shields.io/npm/l/require-as-template-string.svg?style=flat-square&colorB=007EC6)](https://spdx.org/licenses/MIT)

`require-as-template-string` is an experiment in leveraging some features of the JavaScript language to make `require` a lil' bit less of a burden.

# usage

set the "module to preload" via the `--require` option.
(see `node --help` for more info.)

```
node --require require-as-template-string index.js
```

*index.js*

```
const url = r`url`
const [url,net] = r`url,net`
```

### `rr` as alternative api for requiring multiple modules

```
rr`url,net` === r`url,net`
```

---
_Source: https://npm.io/package/require-as-template-string · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
