https://github.com/specla/dot-string
Manage array items or object properties with dot notation strings
https://github.com/specla/dot-string
dot notation string syntax
Last synced: about 1 month ago
JSON representation
Manage array items or object properties with dot notation strings
- Host: GitHub
- URL: https://github.com/specla/dot-string
- Owner: specla
- License: mit
- Created: 2017-06-28T09:20:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-25T07:54:56.000Z (over 8 years ago)
- Last Synced: 2024-02-28T05:24:20.468Z (almost 2 years ago)
- Topics: dot, notation, string, syntax
- Language: JavaScript
- Homepage:
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Specla dot-string
[](https://www.npmjs.com/package/@specla/dot-string)
[](https://travis-ci.org/specla/dot-string)
[](https://coveralls.io/github/specla/dot-string?branch=master)
[](https://david-dm.org/specla/dot-string)
[](http://standardjs.com/)
Manage array items or object properties with dot notation strings.
### Install
```sh
npm install @specla/dot-string
```
### Usage
```js
import { get, set } from '@specla/dot-string'
// Get an array item or object property with dot string syntax
const value = get(obj, 'key.item')
// Mutate array item or object property
set(obj, 'key.item', 'some value...')
```