Neat Paraskavedekatriaphobia's Meaning
    Have ideas to improve npm?Join in the discussion! »

    generate-object-property

    1.2.0 • Public • Published

    generate-object-property

    Generate safe JS code that can used to reference a object property

    npm install generate-object-property
    

    build status

    Usage

    var gen = require('generate-object-property');
    console.log(gen('a','b')); // prints a.b
    console.log(gen('a', 'foo-bar')); // prints a["foo-bar"]

    License

    MIT

    Keywords

    none

    Install

    npm i generate-object-property

    DownloadsWeekly Downloads

    1,065,175

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • avatar