# dotfile-json

> dotfile-json reads and writes dot files.

Latest version **1.0.3** (published 2018-06-14) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install dotfile-json
pnpm add dotfile-json
yarn add dotfile-json
bun add dotfile-json
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-06-14 |
| First published | 2018-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 10.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | goloroden, grundhoeferj, mattwagl, thenativeweb-admin |
| Keywords | dotfile |

## Links

- npm: https://www.npmjs.com/package/dotfile-json
- Repository: https://github.com/thenativeweb/dotfile-json
- Homepage: https://github.com/thenativeweb/dotfile-json#readme
- Issues: https://github.com/thenativeweb/dotfile-json/issues
- npm.io page: https://npm.io/package/dotfile-json

## Dependencies (2)

- [util.promisify](https://npm.io/package/util.promisify.md) 1.0.0
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) 0.11.1

## Recent versions

- 1.0.3 (latest) — 2018-06-14
- 1.0.2 — 2018-06-03
- 1.0.1 — 2018-05-30

## README

# dotfile-json

dotfile-json reads and writes dot files.

## Installation

```shell
$ npm install dotfile-json
```

## Quick start

First you need to add a reference to dotfile-json to your application:

```javascript
const dotFile = require('dotfile-json');
```

To read a dot file, use the `read` function and provide the name of the dot file:

```javascript
const json = await dotFile.read('.configuration');
```

*Please note that `read` returns an empty object if the dot file does not exist.*

To write a dot file, use the `write` function and provide the name of the dot file as well as the object to write:

```javascript
await dotFile.write('.configuration', {
  user: 'root'
});
```

## Running the build

To build this module use [roboter](https://www.npmjs.com/package/roboter).

```shell
$ npx roboter
```

## License

The MIT License (MIT)
Copyright (c) 2018 the native web.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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