Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

except

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

except

A function that returns a copy of the plain object given as first argument but without the keys provided as the other argument(s)

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.5K
increased by6.61%
Maintainers
1
Weekly downloads
 
Created
Source

except

A utility function that returns a copy of the object given as first argument but without the keys provided as the other argument(s).

Installation

Install via npm:

% npm install except

Usage

Just require and call:

var except = require('except');
var myobj  = { foo: true, bar: 1, baz: 'yes' };

except(myobj, 'foo')             // => { bar: 1, baz: 'yes' }
except(myobj, 'foo', 'baz')      // => { bar: 1 }
except(myobj, ['foo', 'bar'])    // => { baz: 'yes' }

Contributing

Here's a quick guide:

  1. Fork the repo and make install.

  2. Run the tests. We only take pull requests with passing tests, and it's great to know that you have a clean slate: make test.

  3. Add a test for your change. Only refactoring and documentation changes require no new tests. If you are adding functionality or are fixing a bug, we need a test!

  4. Make the test pass.

  5. Push to your fork and submit a pull request.

Licence

Released under The MIT License.

Keywords

FAQs

Package last updated on 11 Dec 2014

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc