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

js-sniper

v2.6.0

Published

A lightweight JavaScript utility library that lets you code smarter and build faster

Downloads

36

Readme

SniperJs: The Lightweight and Powerful JavaScript Utility Library

About

SniperJs is a lightweight, easy-to-use JavaScript library designed to simplify and supercharge your web development projects. Whether you’re building websites for learning, personal, or commercial purposes, SniperJs empowers you with versatile tools that save time and effort.

Features

  • Lightweight and fast.
  • Ready-to-use utility functions for common JavaScript tasks.
  • Free to use for all purpose.

Getting Started

Full documentation

SniperJs Docs

Installation

Simply include the library in your project by adding the following <script> tag to your HTML file:

<script src="https://cdn.jsdelivr.net/npm/js-sniper/dist/sniper.min.js"></script>

Alternatively, download the compiled version from our releases page.

Usage Example

// Example: Using SniperJs to manipulate a DOM element
$('#myElement').addClass('highlight');

Regular JavaScript

document.getElementsByClassName("button")[0].classList.add("active");

Why Choose SniperJs Over jQuery?

Seamless DOM Integration

jQuery is object-based, meaning you often have to wait for its $(document).ready() function to ensure your code runs after the DOM is fully loaded. SniperJs eliminates this hassle! SniperJs is integrated directly with DOM elements, so your JavaScript code fires as soon as the corresponding DOM elements are ready, providing a smooth and frustration-free development experience.

Lightweight and Fast

jQuery has evolved over the years but has grown heavier, containing features you might never use. This added weight can slow down your website, especially in performance-critical applications. SniperJs, on the other hand, is built with simplicity in mind. It's lightweight, making it faster to load and execute. Focused on only what you need, no bloatware.

Flexibility: Combining SniperJs with Regular JavaScript

jQuery locks you into its syntax. You can’t freely mix jQuery methods with native JavaScript functions. SniperJs breaks this barrier. You can combine SniperJs methods with native JavaScript seamlessly. This hybrid approach gives you unmatched flexibility.

Example:

// SniperJs with regular JavaScript
$('.button').addEventListener('click', (e) => {
    console.log('Button clicked!');
});

$('.container').addClass('active').firstElementChild;

// Regular JavaScript method
$('input').value;

Intuitive and Cleaner Syntax

SniperJs adopts a syntax inspired by jQuery but simplifies it further to improve readability and usability. You’ll spend less time writing code and more time building features.

Example of SniperJs:

$('main > div*').classList.add('active'); // Add 'active' class to all matched elements
// SniperJs method
$('input').val();

A Fresh Approach to Modern Web Development

jQuery was revolutionary in its time, but it was built for an era before modern JavaScript frameworks and tools. SniperJs is designed with today’s developer in mind. It integrates effortlessly into modern projects. You won’t need extra functions or polyfills to handle outdated browser quirks.

Documentation

Comprehensive documentation is available at SniperJs Docs.

License

This library is proprietary and source-available under specific terms:

  • Free for personal, commercial, and educational use.
  • Modification, redistribution, or reverse-engineering is prohibited.
  • For more details, refer to the license header in the code.

Contributing

Currently, the library is not open to contributions as the source code remains closed to protect intellectual property. Stay tuned for updates in the future.

Support

For questions, issues, or feedback, please contact us at [email protected].