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

jebjust

v1.0.1

Published

Return only what you want, the most specialized javascript module ever.

Downloads

2

Readme

jebjust

Return only what you want, the most specialized javascript module ever. Built in a computer, written using the most new technologies like ECMAScript 2021, TypeScript, NodeJS.


Travis (.com) GitHub language count David npm bundle size GitHub code size in bytes GitHub repo file count Lines of code GitHub all releases npm GitHub issues NPM npm GitHub commit activity GitHub contributors npm collaborators EPICITY RATE PRICE AUTHOR MASTER TYPESCRIPT JAVASCRIPT HTML CSHARP CPLUSPLUS C PYTHON NODE NPM CAN_INSTALL CAN_INSTALL_DEV CAN_INSTALL_GLOBAL NAME

GitHub forks GitHub Repo stars GitHub watchers

Instalation - NodeJS

You can install justjs using the next line in your terminal or CLI: npm i jebjust

Or if you want to install it as a dev-dependency: npm i jebjust -D

Or if you want to install it globally: npm i -g jebjust

Importation - NodeJS

You can import it ussing the commonJS module syntax:

const { just } = require('jebjust')

Or ES2015 syntax:

import { just } from 'jebjust'

Instalation - Browser

To use in the browser you can use the CDN provided by jsDelivr to our browserified file.

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/bundle.js"></script>

Now jebjust is available in window.just

Usage

Once imported, you can use jebjust using the exported function with a paramether that is gonna be returned, here is an example using react-native, react-native-paper, lodash (to short code) and jebcolors (another of my modules that makes a great synergy with this one).

import React, {useState} from 'react'
import { View, StyleSheet } from 'react-native'
import { Button } from 'react-native-paper'
import { jebcMainColors, bootstrapMainColors, socialMainColors } from 'jebcolors'
import { uiMainGradients } from 'jebcolors/dist/gradients'
import { rgb } from 'jebcolors/dist/functions'
import _ from 'lodash'

import { just } from 'jebjust' // <- DON'T FORGET, VERY IMPORTANT

const MyComponent = (props) => {
    const justUseState = just(useState)
    const justMagic = just(jebcMainColors.magic)
    const justFalse = just(false)

    const [mainColor, setMainColor] = justUseState(justMagic)
    const [blackAndWhite, setBlackAndWhite] = justUseState(justFalse)
    
    const random = just(_.sample)

    const changeMainColor = () => {
        const randomColors = [just(jebcMainColors.magic), just(bootstrapMainColors.success),just(socialMainColors.google)]
        const randomBAWColors = [just('#ffffff'), just('#000000')]

        const justRandomColors = just(randomColors)
        const justRandomBAWColors = just(randomBAWColors)

        if(blackAndWhite){
            setMainColor(random(justRandomBAWColors))
        }
        else{
            setMainColor(random(justRandomColors))
        }
    }

    return (
        <View style={[styles.padding,{backgroundColor: just(mainColor)}]}>
            <Button onPress={changeMainColor}>Another Color!!!</Button>
            <Button onPress={just(()=>setBlackAndWhite(!blackAndWhite))}>Black and White</Button>
        </View>
    )
}

const styles = StyleSheet.create({
    padding: {
        padding: just(5)
    }
})