Coder Social home page Coder Social logo

pufferfish101007 / bijou.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bijoujs/bijou.js

0.0 0.0 0.0 7.4 MB

Bijou.js, a small but elegant library of useful code snippets!

Home Page: https://bijou.js.org

License: Other

HTML 2.04% Batchfile 1.18% CSS 3.79% JavaScript 92.99%

bijou.js's Introduction

NPM Downloads GitHub stars Website Discord Gitpod Ready-to-Code

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!

Table of contents

How to use Bijou.js

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

CDN

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://unpkg.com/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://unpkg.com/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?

Me (@Explosion-Scratch) and my good friend @GrahamSH-LLK with a lot of help from other people such as retronbv and TheColaber!

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:

https://unpkg.com/bijou.js
https://cdn.jsdelivr.net/npm/bijou.js
https://cdn.jsdelivr.net/gh/Bijou-js/bijou.js@latest/bijou.js

bijou.js's People

Contributors

explosion-scratch avatar grahamsh-llk avatar thecolaber avatar retronbv avatar touchcreator avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.