An open API service indexing awesome lists of open source software.

https://github.com/gilbarbara/object-to-dot-notation

Convert simple objects to dot notation
https://github.com/gilbarbara/object-to-dot-notation

Last synced: 9 months ago
JSON representation

Convert simple objects to dot notation

Awesome Lists containing this project

README

          

# object-to-dot-notation

[![NPM version](https://badge.fury.io/js/object-to-dot-notation.svg)](https://www.npmjs.com/package/object-to-dot-notation) [![Build Status](https://travis-ci.com/gilbarbara/object-to-dot-notation.svg?branch=master)](https://travis-ci.com/gilbarbara/object-to-dot-notation) [![Maintainability](https://api.codeclimate.com/v1/badges/a53a05c008f89a7e734e/maintainability)](https://codeclimate.com/github/gilbarbara/object-to-dot-notation/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/a53a05c008f89a7e734e/test_coverage)](https://codeclimate.com/github/gilbarbara/object-to-dot-notation/test_coverage)

Convert simple objects to dot notation

### Setup

```bash
npm i object-to-dot-notation
```

```javascript
const dotNotation = require('object-to-dot-notation');

const path = dotNotation({
name: {
state: {
on: {
red: "walk"
}
}
}
});

console.log(path) // name.state.on.red.walk
```