MCPcopy Index your code
hub / github.com/Bijoujs/Bijou.js

github.com/Bijoujs/Bijou.js @v8.2.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v8.2.4 ↗ · + Follow
965 symbols 2,257 edges 27 files 7 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

NPM Downloads GitHub stars Website Gitpod Ready-to-Code Rate on Openbase

Bijou.js

Bijou.js is a library of super helpful JavaScript snippets! It has a bunch of useful snippets for all your coding needs! If there's something that's not in here currently but you use frequently, feel free to submit an issue! I'd be happy to add it! Bijou's goal is to eliminate the need to copy paste the same thing from StackOverflow, another project or anywhere else! So if you ever find yourself typing the same thing over and over again, copy pasting the same snippet as you did a few days ago, use Bijou.js! If the snippet you're using isn't in Bijou.js, just submit an issue with the code!

How to use Bijou.js

Thanks for using Bijou.js! It's pretty simple to use, but here's the guide:

CDN

CDNJS

<script src="https://cdnjs.cloudflare.com/ajax/libs/Bijou.js/8.2.3/bijou.js" type="module"></script>

jsDelivr:

<script src="https://cdn.jsdelivr.net/npm/bijou.js@latest/bijou.js" type="module"></script>

UNPKG

<script src="https://unpkg.com/bijou.js@latest/bijou.js" type="module"></script>

Imports

You can also import parts of bijou, for example only the uuid() function:

<script type="module">
    import { uuid } from "https://cdnjs.cloudflare.com/ajax/libs/Bijou.js/8.2.3/bijou.js";
    console.log(uuid()); //Same as _$.uuid() when importing the whole library.
</script>

or you can import the whole thing:

<script type="module">
    import * as _$ from "https://cdnjs.cloudflare.com/ajax/libs/Bijou.js/8.2.3/bijou.js";
    console.log(_$.uuid());
</script>

NodeJS

Bijou.js is included in NodeJS through NPM and yarn! Depending on the platform you're using you may have to install it through npm or yarn:

npm install bijou.js

or

yarn add bijou.js

Then just require it in your code:

const _$ = require("bijou.js");
console.log(_$.uuid());

Usage

To use Bijou.js simply call one of the many functions built into it!

_$.anyFunction(); //You can name bijou anything when using imports, or when using node you can name it using require();

Such as this one!

_$.uuid(); //Results in something like this: c3435c88-0a20-491f-9391-3afde9c4a2d1

If you need to use a custom prefix than you can set a variable that you want to use as Bijou.js to _$

Who made Bijou.js?

I (@Explosion-Scratch) started it and continually maintain and supervise the project, but many other amazing people have helped. See the contributors section for more info.

Why use Bijou?

Well, a few reasons:

  1. I made it. 😛
  2. It's useful! (If it's not useful just tell me what you want added in the issues tab! I'd be happy to add it!)
  3. It's jam packed full of functions that are super useful but hard to think of!
  4. It's very easy to use, and I'm happy to add anything you think of!

(You can probably see I'm pretty desperate for people to use this.)

Installation

Bijou.js is available in NodeJS through yarn and NPM

npm i bijou.js or yarn add bijou.js

Or through a CDN

CDN Url's

https://cdnjs.cloudflare.com/ajax/libs/Bijou.js/8.2.3/bijou.js
https://esm.run/bijou.js
https://cdn.jsdelivr.net/npm/bijou.js
https://unpkg.com/bijou.js
https://cdn.jsdelivr.net/gh/Bijou-js/bijou.js@latest/bijou.js

Contributors ✨

Thanks goes to these wonderful people (emoji key):

--Explosion-- 💻 🎨 🐛 📖 🚇 ⚠️ 🖋 🤔 📦 💡 -Xanimation- 📖 🐛 AFK 🐛 CubeyTheCube 💻 GrahamSH 🐛 💻 📖 MTM828 🖋 Pufferfish101007 🐛 📖 ⚠️ 🔧 💬
Sly Little Fox 🐛 🤔 TheColaber 🐛 💻 📖 TouchIsNotAGoodCoder 🐛 William Horning 💻 📖 apple502j 🛡️ retronbv 💻 🤔 🐛 📖 thecoder876 🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Core symbols most depended-on inside this repo

r
called by 225
bijou-min.js
r
called by 225
docs/bijou.js
req
called by 218
bijou.js
req
called by 218
js/_copyright.js
req
called by 216
bijou_node.js
t
called by 199
bijou-min.js
t
called by 199
docs/bijou.js
proto
called by 113
bijou_node.js

Shape

Function 965

Languages

TypeScript100%

Modules by API surface

bijou.js186 symbols
bijou_node.js184 symbols
docs/bijou.js165 symbols
bijou-min.js165 symbols
docs/docs/scripts/third-party/fuse.js43 symbols
js/utility.js39 symbols
js/element.js38 symbols
js/string.js35 symbols
js/math.js15 symbols
js/function.js14 symbols
js/array.js14 symbols
docs/docs/scripts/third-party/prettify.js14 symbols

For agents

$ claude mcp add Bijou.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact