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

array-initializer

v0.0.3

Published

A simple and small package to initialize your array with varity of differnt elements

Downloads

1

Readme


GitHub watchers GitHub watchers GitHub watchers GitHub watchers

This is a fully flexible array initializer based on Node

Table of Contents

Features

  • Node based
  • Simple Javascript methods

🤲 Want to Motivate?

Who doesn't need motivation? Please give the project a star(⭐) and/or share it in your dev circle.

When do you need it

  • You want to initialize your array?
  • Initialize with complex values?

Install 🐙

npm install array-initializer

or

yarn add array-initializer

Usage

import {numberRange, specialChars} from 'array-initializer'

const your_int_array = range(50,100);
const your_spl_char_array = specialChars();

Highlight 🔥

It was frustrating for me when I was looking for some easy library to initialize various types of array throughout in my application.

Methods

|Type|Method | Arguments |Description| |---|---|---|---| |Number| range0to100 | exceptions: array | Initialize for 0 to 100| |Number| range0to1000 | exceptions: array |Initialize for 0 to 1000| |Number| rangeNegative100to100 | exceptions: array |Initialize for -100 to 100| |Number| numberRange | start: number, end: number, exceptions: array, |A custom range to initialize for| |Char| smallChars | exceptions: array | Initialize for a to z| |Char| capitalChars | exceptions: array | Initialize for A to Z| |Char| specialChars | exceptions: array | Initialize for special characters| |Char| printableChars | exceptions: array | Initialize for printable characters| |Char| randomString | count: number exceptions: array | Initialize for random string|

Arguments

|Name|Type|Default|Description| |---|---|---|---| |exceptions| array | empty | If you wish to avoid certain entries| |start| source type | undefined | When you wish to define a start point for a range | |end| source type | undefined | When you wish to define a end point for a range | |count| number | max possible size | When you wish to restrict a length |

Items in queue

  • Logically endless combinations

Contribution 🍰

If you understand the importance please feel free to create issue and make pull request

Refer code of conduct

Refer contributing

License

MIT © Koustov