New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

util-array-object-or-both

Package Overview
Dependencies
Maintainers
1
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util-array-object-or-both - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

package.json
{
"name": "util-array-object-or-both",
"version": "1.2.0",
"version": "1.2.1",
"description": "Validate and normalise user choice: array, object or both?",

@@ -5,0 +5,0 @@ "main": "index-es5.js",

# util-array-object-or-both
<a href="https://standardjs.com" style="float: right; padding: 0 0 20px 20px;"><img src="https://cdn.rawgit.com/feross/standard/master/sticker.svg" alt="Standard JavaScript" width="100" align="right"></a>
> Validate and normalise user choice: array, object or both?

@@ -38,5 +36,7 @@

```bash
$ npm install --save util-array-object-or-both
$ npm install util-array-object-or-both
```
The source is in ES6, but transpiled code (ES5) is served.
## Purpose

@@ -161,10 +161,18 @@

Unit tests use [AVA](https://github.com/avajs/ava) and [JS Standard](https://standardjs.com) notation. I aim to have 100% unit test coverage (both _line_ and _branch_).
Unit tests use [AVA](https://github.com/avajs/ava), linting is done via ESLint on `airbnb-base` preset. I aim to have 100% unit test coverage (per-_line_, _function_ and _branch_).
## Contributing
All contributions are welcome. Please stick to [Standard JavaScript](https://standardjs.com) notation and supplement the `test.js` with new unit tests covering your feature(s).
If you see anything incorrect whatsoever, do [raise an issue](https://github.com/codsen/util-array-object-or-both/issues). If you file a pull request, I'll do my best to merge it quickly. If you have any comments on the code, including ideas how to improve something, don't hesitate to contact me by email.
If you see anything incorrect whatsoever, do [raise an issue](https://github.com/codsen/util-array-object-or-both/issues). If you feel you could advise how to code something better, do email me. I know it never happens, but I appreciate when people teach me new things.
If something doesn't work as you wished or you don't understand the inner working of this library, _do raise an issue_. I'm happy to explain what's happening. Often some part of my README documentation is woolly, and I can't spot it myself. I need user feedback.
Also, if you miss a feature, request it by [raising](https://github.com/codsen/util-array-object-or-both/issues) an issue as well.
I know it never happens but if you would ever forked it and worked on a new feature, before filing a pull request, please make sure code is following the rules set in `.eslintrc` and `npm run test` passes fine. It's basically an `airbnb-base` rules preset of `eslint` with few exceptions: 1. No semicolons. 2. Allow plus-plus in `for` loops. See `./eslintrc`.
I dropped JS Standard because it misses many useful ESLint rules and has been neglected by its maintainers, using half-year-old version of ESLint.
Cheers!
## Licence

@@ -171,0 +179,0 @@

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