# file-rawtxt-loader

> the file raw content loader. You can also use [raw-loader]

Latest version **1.0.2** (published 2020-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install file-rawtxt-loader
pnpm add file-rawtxt-loader
yarn add file-rawtxt-loader
bun add file-rawtxt-loader
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2020-11-19 |
| First published | 2020-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ilex.h |
| Maintainers | ilex.h |
| Keywords | file-loader, rawtxt, rawtxt-loader |

## Links

- npm: https://www.npmjs.com/package/file-rawtxt-loader
- npm.io page: https://npm.io/package/file-rawtxt-loader

## Recent versions

- 1.0.2 (latest) — 2020-11-19
- 1.0.1 — 2020-11-19
- 1.0.0 — 2020-11-19

## README

# file-rawtxt-loader

File content loader, or use raw loader.

## description

## 💿 Installation

```bash
npm install --save-dev file-rawtxt-loader
```

## 📖 Usage

webpack.config.js

* 🔧 simple use

```js
// webpack 1
loaders: [
  { test: /\.txt$/, loader: "file-rawtxt-loader" }
]

// webpack 2
rules: [
  { test: /\.txt$/, use: 'file-rawtxt-loader'}
]
```

* 🔧 inline use

```js
var fileContent = require("file-rawtxt-loader!./file.txt");
// => returns file.txt content as string
var jsContent = require("file-rawtxt-loader!./file.js");
// => returns file.js content as string
```

## 💎 author

ilex.h

## License

MIT

## changelog

* `file-rawtxt-loader` 于 `20171010 18:56` 创建于私服。
* 20200721 09:20 发布更新包
* 20201119 更名为 `file-rawtxt-loader`, 同时发布与 npm 官方服务。

---
_Source: https://npm.io/package/file-rawtxt-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
