Narcissistic Preening Monarch
    Wondering what’s next for npm?Check out our public roadmap! »

    recurse-delete-property

    0.0.4 • Public • Published

    Recursively delete a property in object.

    Install

    npm i recurse-delete-property

    Usage

    var rdp = require('recurse-delete-property');
    console.log(rdp({ foo: 123, bar: 456, baz: { foo: 543 }}));
     
    // prints:
      { bar: 456, baz: {  } }

    Command Line

    echo '{ "foo": 123, "bar": 445 }' | recurse-delete-property -p foo -i 2
    
    #prints:
    
    {
      "bar": 445
    }
    

    I use this to delete some unwanted properties in npm-shrinkwrap.

    License

    MIT 2014 - Jose Romaniello

    Keywords

    none

    Install

    npm i recurse-delete-property

    DownloadsWeekly Downloads

    1

    Version

    0.0.4

    License

    MIT

    Last publish

    Collaborators

    • avatar