Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Bucketify is a JavaScript data manipulator that divides across a set of buckets of equal size.
npm install --save bucketify
Download the minified browser version bucketify.min.js
<script src="bucketify.min.js"></script>
Bucketify({list,getProperty,minRange,maxRange,maxBuckets,bucketSize)
list
: Array of number, strings, objects, etc. to be groupedgetProperty
: (Optional if list
elements are numbers) A function that, when passed an element from list
, returns a number.minRange
: (Optional) The minimum value for a bucket to accept. Will be overwritten if list
contains values less than minRange
.maxRange
: (Optional) The maximum value for a bucket to accept. Will be overwritten if list
contains values greater than maxRange
.maxBuckets
: (Optional) The maximum number of buckets. If set,maxBuckets
must be greater than zero. Cannot be set along with bucketSize
.bucketSize
: (Optional) The size of each bucket. If set,bucketSize
must be greater than zero. Cannot be set along with maxBuckets
.Bucketify.add(element)
element
: Element to be added to Bucketify instanceISC License (ISC)
Copyright 2020 Vinay Pillai
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. THE SOFTWARE.
FAQs
Library divides lists into evenly spaced buckets
The npm package bucketify receives a total of 3 weekly downloads. As such, bucketify popularity was classified as not popular.
We found that bucketify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.