@zishone/dotnotate
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

dotnotate NPM Build codecov License

A utility function to convert JSON objects to dotnotation

Installation

$ npm i @zishone/dotnotate

Usage

1. Import dotnotate

const { dotnotate } = require('@zishone/dotnotate');

2. Dotnotate

const obj = { a: { b: { c: 1 } } };

const dotnotatedObj = dotnotate(obj);

console.log(JSON.stringify(dotnotatedObj, null, 2))
// {
//   'a.b.c': 1
// }

Authors

  • Zishran Garces

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i @zishone/dotnotate

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

6.59 kB

Total Files

9

Last publish

Collaborators

  • zishone