npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bulldorizer

v2.0.7

Published

> 🚜 Powerful array manipulation utility for splitting, compacting, and doubling arrays.

Downloads

3

Readme

bulldorizer

🚜 Powerful array manipulation utility for splitting, compacting, and doubling arrays.

Build Status npm version GitHub license

Install

$ npm install --save bulldorizer

Usage

import { __chunk, __compact, __doubles } from "bulldorizer";

API

Signature: __chunk(array, size)

Params

  • array {Array}: The array to process.
  • size {number}: The length of each chunk.

Returns

  • {Array}: Returns the new array of chunks.
const arr = [
  "apple",
  "banana",
  "orange",
  "grape",
  "kiwi",
  "melon",
  "strawberry",
  "peach",
  "plum",
  "pear",
];

const result = __chunk(arr, 2);
// result: [['apple', 'banana'], [ 'orange', 'grape'], ['kiwi', 'melon'], ['strawberry', 'peach'], ['plum', 'pear']]

const result = __chunk(arr, 3);
// result: [['apple', 'banana', 'orange'], ['grape', 'kiwi', 'melon'], ['strawberry', 'peach', 'plum'], ['pear']]

const result = __chunk(arr, 4);
// result: [['apple', 'banana', 'orange', 'grape'], ['kiwi', 'melon', 'strawberry', 'peach'], ['plum', 'pear']]

Signature: __compact(array)

Params

  • array {Array}: The array to compact.

Returns

  • {Array}: Returns the new array of filtered values.
const arr = [1, 3, 0, false, 2, "", 4, undefined, 5, NaN];

const result = __compact(arr);
//result: [1, 3, 2, 4, 5]

Signature: __doubles(array)

Params

  • array {Array}: The array of numbers to double.

Returns

  • {Array}: Returns the new array with each number doubled.
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

const result = __doubles(arr);
//result: [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]

Contributing

We welcome contributions from the community! Please follow these guidelines when contributing to bulldorizer:

  1. Fork the repository and clone it to your local machine.
  2. Create a new branch for your feature or bug fix.
  3. Write tests to cover your changes.
  4. Make your changes, ensuring the tests pass.
  5. Push your changes to your fork and submit a pull request.

Thank you for contributing to bulldorizer!

License

MIT © Vinyl Davyl

About

This package is created and maintained by Vinyl-Davyl. We aim to provide powerful and efficient array manipulation utilities for JavaScript developers. If you have any questions or feedback, feel free to reach out to us on GitHub or Twitter.