npm.io
5.0.1 • Published 5 months ago

jessy

Licence
MIT
Version
5.0.1
Deps
0
Size
8 kB
Vulns
0
Weekly
0
Stars
5

Jessy License NPM version Build Status Coverage Status

Get value by object property.

Install

npm i jessy --save

Hot to use?

import {jessy} from 'jessy';

jessy('hello.world', {
    hello: {
        world: 'could be used in browser as well',
    },
});

// returns
'could be used in browser as well';

jessy('work-with-divider', '-', {
    work: {
        with: {
            divider: 'could use divider as well',
        },
    },
});

// returns
'could use divider as well';

jessy('', {
    hello: 'world',
});

// returns
{
    hello: 'world';
}

License

MIT

Keywords