# qm-fs-touch

> Creates file

Latest version **0.1.2** (published 2017-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install qm-fs-touch
pnpm add qm-fs-touch
yarn add qm-fs-touch
bun add qm-fs-touch
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-12-12 |
| First published | 2017-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | qaraluch |
| Maintainers | qaraluch |

## Links

- npm: https://www.npmjs.com/package/qm-fs-touch
- Repository: https://github.com/qaraluch/qm-fs-touch
- Issues: https://github.com/qaraluch/qm-fs-touch/issues
- npm.io page: https://npm.io/package/qm-fs-touch

## Dependencies (2)

- [babel-runtime](https://npm.io/package/babel-runtime.md) 6.26.0
- [qm-fs-ifexists](https://npm.io/package/qm-fs-ifexists.md) 0.1.3

## Recent versions

- 0.1.2 (latest) — 2017-12-12
- 0.1.1 — 2017-10-13
- 0.1.0 — 2017-10-13

## README

![logo-qm](./pic/logo-qm.jpg)

# qm-fs-touch [![npm version](https://badge.fury.io/js/qm-fs-touch.svg)](https://badge.fury.io/js/qm-fs-touch) [![Build Status](https://travis-ci.org/qaraluch/qm-fs-touch.svg?branch=master)](https://travis-ci.org/qaraluch/qm-fs-touch) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

> Simple module for creation files on disk. Use only in node.js above v.8 due to `util.promisify` usage.

## Installation

```
$ npm i -S qm-fs-touch
```

## Usage

```js
import touch from "qm-fs-ifexists";

// default
const options = {
  encoding: "utf8",
  overwrite: false
};

touch("./someFile", "content of the file", options).then(result => {
  console.log(result); // path to a created file
});
```

Content of the file can be a: \<Sring> | \<Buffer> | \<Uint8Array> as stated in Node.js [documentation](https://nodejs.org/api/fs.html#fs_fs_writefile_file_data_options_callback).

## Test

Tests are written with [ava](https://github.com/avajs/ava). Run by:

```sh
npm run test
```

## License

MIT © [qaraluch](https://github.com/qaraluch)

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