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 πŸ™

Β© 2026 – Pkg Stats / Ryan Hefner

@igorskyflyer/uarray

v2.0.0

Published

πŸŽ‰ Provides UArray, an Array type that supports negative indices/indexes, just wrap your regular JavaScript array with UArray() and you are all set! πŸ™Œ

Readme

πŸ“ƒ Table of Contents

πŸ€– Features

  • πŸ”’ Negative indexing (-1, -2, etc.)
  • 🧳 Accepts array or multiple values
  • πŸͺž Behaves like a native array
  • πŸ› οΈ Supports all standard methods
  • 🧼 Safe fallback for non-numeric keys
  • πŸ§ͺ Ideal for reverse access and testing
  • πŸš€ Drop-in replacement, zero config

πŸ•΅πŸΌ Usage

Install it by executing any of the following, depending on your preferred package manager:

pnpm add @igorskyflyer/uarray
yarn add @igorskyflyer/uarray
npm i @igorskyflyer/uarray

ℹ️ Uses the built-in Proxy object, check browser compatibility on the Can I Use website.

πŸ—’οΈ Examples

import { UArray } from '@igorskyflyer/uarray'

const food = UArray(['🍟', '🌭', '🍿', 'πŸ₯™', 'πŸ₯“']) // array passed
const objects = UArray('🎈', '🎩', '⚽', 'πŸ₯‡', '🎯') // no array passed, just direct values

console.log(food[-1]) // prints 'πŸ₯“'
console.log(food[-3]) // prints '🍿'

console.log(objects[-1]) // prints '🎯'
console.log(objects[-3]) // prints '⚽'

πŸ“ Changelog

πŸ“‘ The changelog is available here, CHANGELOG.md.

πŸͺͺ License

Licensed under the MIT license which is available here, MIT license.

πŸ’– Support

🧬 Related

@igorskyflyer/str-is-in

🧡 Provides ways of checking whether a String is present in an Array of Strings using custom Comparators. πŸ”

@igorskyflyer/keppo

🎑 Parse, manage, compare and output SemVer-compatible version numbers. πŸ›‘

@igorskyflyer/chars-in-string

πŸͺ Provides ways of testing whether an array of chars is present inside a given String. β˜„

@igorskyflyer/clone

🧬 A lightweight JavaScript utility allowing deep copy-by-value of nested objects, arrays and arrays of objects. πŸͺ

@igorskyflyer/common-color

🎨 Provides common Color-related TypeScript types. 🌈

πŸ‘¨πŸ»β€πŸ’» Author

Created by Igor Dimitrijević (@igorskyflyer).