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

strong-set

v0.0.1

Published

StrongSet, a more powerful and improved version of the set function

Downloads

6

Readme

Alisa Logo

Package Name Package size Version License

NPM

Source file

Creator(s)

Social media accounts

What is this module?

  • This module is more advanced version of Set function

  • This module provides a more stable way for you by eliminating the deficiencies and errors of the Set function

  • It has all the commands you need and there is an explanation of how each command should be used

So how to use?

It's very simple, first you have to open any javascript file and write the following in it:

// Node.js
const Strong_Set = require("strong-set")

// Without node.js
import Strong_Set from "strong-set"


// Build without any data in it
const StrongSet_1 = new Strong_Set()

// Build with data inside (Array)
const StrongSet_2 = new Strong_Set(["value", "anotherValue"])

// Build with data inside (Set or StrongSet)
const StrongSet_3 = new Strong_Set(StrongSet_1)

Each StrongSet specifies a different Set function and the data they all hold is different. You can increase this as much as you want

After typing this you can access all commands

CAUTION!!

Please make your definitions as above. If you have made a definition as below, the module will not work properly and will give an error!

// Incorrect command definition

const Strong_Set = require("strong-set")

const { has, add } = new Strong_Set()
// This command will throw an error!


const StrongSet = new Strong_Set()
// This command will work as it should

Example

Now let's show how to write data to the Set function and check the written data

// Writing data to the Set function
StrongSet.add("hello")
StrongSet.add({ hello: "World!" })

// Now when we print the StrongSet function to the console, the following will appear on the screen:

Writing data to the Set function

Now let's try to pull the data we wrote

// Now let's check the data we wrote
StrongSet.has("hello") // true

StrongSet.has({ hello: "World!" }) // true
// If you tried to check it with the regular Set function, it would most likely return false.
// But thanks to this StrongSet module, it will return whatever data you typed, no matter what you typed

StrongSet module always wins

So why strong-set?

  • The StrongSet module is a fairly simple yet effective module and overpowered for its package size

  • The StrongSet module is an open source module, so if you get an error you can fix it yourself

  • The StrongSet module is being developed every day, helping you in the best way with new features and increasing performance

  • You don't have to wait long while downloading due to the low package size

  • Aaaannddd if you download it you will make me very happy 👉👈

Updates

v0.0.1

  • Module shared publicly 🥳🥳

Please do not forget to use it in the latest version for more stable and performance of the module!

And finally

  • If you want to support this module, if you request me on github, I will be happy to help you

  • Thank you for reading this far, i love you 💗

  • See you in my next modules!

lovee