🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@webkrafters/path-dotize

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webkrafters/path-dotize

Path Dotize - Converts object path tokens or string into a single dot separated object path string.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Path Dotize

Converts object path tokens or string into a single dot separated object path string.

Install:
npm i -S path-dotize
Alternate: npm i -S @webkrafters/path-dotize

Example

import dotize from 'path-dotize'; 

dotize( 'matrix.1.1' ); // => 'matrix.1.1'
dotize( 'matrix[2].0' ); // => 'matrix.2.0'
dotize( 'address' ); // => 'address'
dotize( 'registered.timezone' ); // => 'registered.timezone'
dotize( 'tags[4]' ); // => 'tags.4'
dotize( 'matrix[0][1]' ); // => 'matrix.0.1'
dotize([
    'foo',
    'bar',
    'baz',
    'toc'
]); // => 'foo.bar.baz.toc'

License

MIT

Keywords

dot

FAQs

Package last updated on 24 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts