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

beware-utils

v1.2.5

Published

a project that contains many things for different things

Downloads

11

Readme

beware-utils

A package that gives animes gifs of choice or that you can create yourself! It also has mathematical accounts to be solved or types of data to know

Installation

npm i beware-utils

Methods:

  • gif
  • add
  • new
  • createFolder
  • type
  • say
  • mty
  • qt
  • dde
  • mdl
  • toHex
  • decimal
  • cube Basic uses:
   const bw = require('beware-utils')
     console.log(bw.add(1, 2)) //this method is to add x number by x number
     console.log(bw.qt(1, 2)) //this method is to subtract x number by x number
     console.log(bw.dde(1, 2)) //this method is to divide x number by x number
     console.log(bw.mty(1, 2)) //this method is to multiply x number by x number
     console.log(bw.mdl(4, 1)) //These types of accounts are called leftovers, you can leftover x number by number
     console.log(bw.cube(1, 2)) //returns 125 because it would be 5 x 5 x 5, basically you cubed
     console.log(bw.decimal('123456789')) //return 123,456,789, you can put any number
     console.log(bw.type(1)) //returns an int type
     console.log(bw.type("test")) //returns a string type
     console.log(bw.say('Hi this is a test')) //return the text and so on with all the data types in javascript
     bw.new() //make a folder with a json file where you can put your custom gifs
     bw.createFolder('name') //create a folder with a x name
     console.log(bw.toHex('white')) //return #FFFFFF, below the readme there is a list of the colors that are available
    });

Methods of gif:

  • cry
  • favorite
  • dance
  • kill
  • punch
  • kiss
  • happy
  • eat
  • blush
  • hug
  • pat
  • sape
  • run
  • think
  • angry
  • psycho
  • others

Gifs example with discord.js:

const bw = require('beware-utils')
const Discord = require('discord.js')
   if(message.content === 'Gif') {
       message.channels.send(bw.gif.cry) //returns a random gif of hes category
   }

how to use new

const bw = require('beware-utils')//you call the module
bw.new()//you do the function
//you go to the console and type node index and it will make you a folder with a file
/*
[–] beware_content
   - your_gifs.json
the file will contain this:
 */ 
  
{
   "you":{
        "gif1":"GIF-URL",
        "gif2":"GIF-URL",
        "gif3":"GIF-URL",
        "gif4":"GIF-URL",
        "gif5":"GIF-URL",
        "gif6":"GIF-URL",
        "gif7":"GIF-URL",
        "gif8":"GIF-URL"
 }
}   
/*
You will replace the GIF-URL by a direct way of the image or gif and it would look like this
*/  
{
   "you":{
        "gif1":"https://media3.giphy.com/media/13LqvuyI2h7LYA/200w.gif",
        "gif2":"https://media3.giphy.com/media/13LqvuyI2h7LYA/200w.gif",
        "gif3":"https://media3.giphy.com/media/13LqvuyI2h7LYA/200w.gif",
        "gif4":"https://media3.giphy.com/media/13LqvuyI2h7LYA/200w.gif",
        "gif5":"etc",
        "gif6":"etc",
        "gif7":"etc",
        "gif8":"etc"
 }
} 
/*
to import and use that file you must put this in your index.js:
*/
const me = require('./beware_content/your_gifs.json')
//and to use simply do this
console.log(me.you.gif1)
//to use a random
const bw = require('beware-utils')
const me = require('./beware_content/your_gifs.json')
console.log(bw.ygif.ygif(me.you))//if you add more categories, simply change the you for the category you ade

list of colores to hex:

  • aliceblue
  • aqua
  • antiquewhite
  • aquamarine
  • azure
  • beige
  • bisque
  • black
  • blanchedalmond
  • blue
  • blueviolet
  • brown
  • burlywood
  • cadetblue
  • chartreuse
  • chocolate
  • coral
  • cornflowerblue
  • cornsilk
  • crimson
  • cyan
  • darkblue
  • darkcyan
  • darkgoldenrod
  • darkgray
  • darkgrey
  • darkgreen
  • darkkhaki
  • darkmagenta
  • darkolivegreen
  • darkorange
  • darkorchid
  • darkred
  • darksalmon
  • darkseagreen
  • darkslateblue
  • darkslategray
  • darkslategrey
  • darkturquoise
  • darkviolet
  • deeppink
  • deepskyblue
  • dimgray
  • dimgrey
  • dodgerblue
  • firebrick
  • floralwhit
  • forestgreen
  • fuchsia
  • gainsboro
  • ghostwhite
  • gold
  • goldenrod
  • gray
  • grey
  • green
  • greenyellow
  • honeydew
  • hotpink
  • indianred
  • indigo
  • ivory
  • khaki
  • lavender
  • lavenderblush
  • lawngreen
  • lemonchiffon
  • lightblue
  • lightcoral
  • lightcyan
  • lightgoldenrodyellow
  • lightgray
  • lightgrey
  • lightgreen
  • lightpink
  • lightsalmon
  • lightseagreen
  • lightskyblue
  • lightslategray
  • lightslategrey
  • lightsteelblue
  • lightyellow
  • lime
  • limegreen
  • linen
  • magenta
  • maroon
  • mediumaquamarine
  • mediumblue
  • mediumorchid
  • mediumpurple
  • mediumseagreen
  • mediumslateblue
  • mediumspringgreen
  • mediumturquoise
  • mediumvioletred
  • midnightblue
  • mintcream
  • mistyrose
  • moccasin
  • navajowhite
  • navy
  • oldlace
  • olive
  • olivedrab
  • orange
  • orangered
  • orchid
  • palegoldenrod
  • palegreen
  • paleturquoise
  • palevioletred
  • papayawhip
  • peachpuff
  • peru
  • pink
  • plum
  • powderblue
  • purple
  • rebeccapurple
  • red
  • rosybrown
  • royalblue
  • saddlebrown
  • salmon
  • sandybrown
  • seagreen
  • seashell
  • sienna
  • silver
  • skyblue
  • slateblue
  • slategray
  • slategrey
  • snow
  • springgreen
  • steelblue
  • tan
  • teal
  • thistle
  • tomato
  • turquoise
  • violet
  • wheat
  • white
  • whitesmoke
  • yellow
  • yellowgreen