
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
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.
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
You can import it ussing the commonJS module syntax:
const { just } = require('jebjust')
Or ES2015 syntax:
import { just } from 'jebjust'
To use in the browser you can use the CDN provided by jsDelivr to our browserified file.
<script src="https://cdn.jsdelivr.net/npm/jebjust@1.0.1/dist/bundle.js"></script>
Now jebjust is available in window.just
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)
}
})
FAQs
Return only what you want, the most specialized javascript module ever.
We found that jebjust demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.