JSPro is nothing but JavaScript Prototypes! The publisher is too lazy to write full name that's why it's just JSPro.

Overview

WTF JSPro is!

JSPro is nothing but JavaScript Prototypes! The publisher is too lazy to write full name that's why it's just JSPro. Whatever, it's a library of hundreds of awesome JavaScript Prototypes (you may know it as dot function) for lazy programmers. Just install the package with a little effort and leave the blames for the publisher.

Sigma rule 512

Life is not a pressure cooker, don't let the pressure get into it.


Not clear yet?

Currently you are able to use some limited prototypes. For rest of the small programs, you need to re-invent the wheel.

For example

To upper case string, you use

const name = "John"

console.log(name.toUpperCase())
// JOHN

or to lower case string

const name = "JOHN"

console.log(name.toLowerCase())
// john

But JavaScript doesn't have any built-in prototypes or functions to capitalize string. So to capitaize string you needed to write a user defined function like this

const capitalizeString = (str) => str[0].toUpperCase() + str.slice(1)

const name = "john"

console.log(capitalizeString(name));

// John

But using JSPro you will be able to code in JavaScript like a pro.

To capitalize string

const name = "john"

console.log(name.toCapitalCase())
// John 

Isn't amazing?

JSPro has hundreds of awesome prototypes like this. You don't need to reinvent the wheel again.


Table of contents

  1. Intro
  2. Install
  3. Usage
  4. Prototypes
    1. String
    2. Number
    3. Object
    4. Array
  5. Customization
  6. Contribution


Install

Simply install from you terminal

npm i jspro

Usage

You can use JSPro as Node module as well as ES6/ESNext module.

Node

require("jspro")

ESNext

import "jspro"

Prototypes

  1. String prototypes
  2. Number prototypes
  3. Object prototypes
  4. Array prototypes

String

Capital Case

const name = 'john'

name.toCapitalCase()

// John

Reverse

const name = 'John'

name.reverse()

// nhoJ

Camel Case

const name = 'John Doe'

name.toCamelCase()

// johnDoe

Slugify

const name = 'Hello World'

name.slugify()

// hello-world

Customization

Yes, you can load only the prototypes you need.

require("jspro/string") // string only
require("jspro/number") // number only 
require("jspro/object") // object only
require("jspro/array")  // array only

By default, all four types of prototypes will be loaded.

Contribution

Publisher Jafran Hasan

Planning to contribute?

Seems like you are not too lazy!

Thanks for your interested. You can pull the repo from git. But you are requested to open a ticket before pushing for discussing on what you are planning to add.

You might also like...

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.

Install | Documentation | Releases | Contributing Foundation is the most advanced responsive front-end framework in the world. Quickly go from prototy

Jan 4, 2023

Tired of boring balena device names? Why not let us choose!

name-block A balenaBlock for fun device renaming Highlights Bored of your device names?: Let this block rename them for you! Loads of categories: From

Dec 20, 2021

Get better insight on why your Remix app crashed during development 💥

Get better insight on why your Remix app crashed during development 💥

Remix Crash A root development ErrorBoundary / for your Remix apps. Overview Remix Crash is a development overlay to simplify debugging during your

Jul 19, 2022

why make apps to increase focus -- when you can make apps to reduce focus

impossifocus 🕺 What is this? ImpossiFocus will measure focus by reading your brainwaves -- and if you're in the zone, it'll ensure that changes with

Nov 30, 2022

Types generator will help user to create TS types from JSON. Just paste your single object JSON the Types generator will auto-generate the interfaces for you. You can give a name for the root object

Types generator will help user to create TS types from JSON. Just paste your single object JSON the Types generator will auto-generate the interfaces for you. You can give a name for the root object

Types generator Types generator is a utility tool that will help User to create TS Interfaces from JSON. All you have to do is paste your single objec

Dec 6, 2022

Welcome contributers❤️🎉. Just add your name, Github profile link and Linkedin link🔗 Look at Readme for more.📖

Welcome contributers❤️🎉. Just add your name, Github profile link and Linkedin link🔗 Look at Readme for more.📖

Hello Welcome Developers! Step - 1 Create a GitHub account, if you don't already have one. Step - 2 Register for Hacktoberfest: Navigate to the Hackto

Oct 31, 2022

Learn GraphQL by building a blogging engine. Create resolvers, write schemas, write queries, design the database, test and also deploy.

GraphQL Blog graphqlblog.com Learn GraphQL by building a blogging engine. Create resolvers, write schemas, write queries, design the database, test an

Aug 17, 2022

full mimic for YouTube-website with most of its functionalities

full mimic for YouTube-website   with most of its functionalities

YouTubeX 📝 Table of Contents About features Technologies used getting started Demo screenshots 🚩 About YouTubeX is a clone of YouTube. It is a simpl

Nov 30, 2022

A custom select dropdown. This is something that is not too difficult to make.

Custom-Dropdown-JS A custom select dropdown using basic JS fucntionality. This is something that is not too difficult to make. But it shows that you h

Mar 26, 2022
Owner
Jafran Hasan
Jafran Hasan
This project is created to store the name of the book and the name of its author, build with JavaScript.

awesome-books A plain javascript project that can keep track of a list of books utilizing localStorage. See live demo Built With HTML CSS Javascript T

Shaqayq Darwazi 3 Jul 19, 2022
A 3-D software rasterizer written from scratch in nothing but JavaScript

itch.io • Play in the browser Tmp3D is a 3-D software rasterizer written from scratch in nothing but plain-old JavaScript, just for kicks. It makes us

Emre 43 Nov 27, 2022
Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute.

loading="lazy" attribute polyfill Fast and lightweight vanilla JavaScript polyfill for native lazy loading, meaning the behaviour to load elements rig

Maximilian Franzke 571 Dec 30, 2022
PublisherConnector is a class object that allows you to interact with the CHILI Publisher editorObject via postMessage without the complexity of postMessage.

PublisherConnector is a class object that allows you to interact with the CHILI Editor editorObject via postMessage without the complexity of postMessage.

CHILI publish 8 Nov 24, 2022
a simple wrapper nestjs dynamic module on top of surrealdb.js driver, with a consumer app to show case library in action, nothing fancy

README README Project Components Dynamic Module Consumer App Install SurrealDb Starts SurrealDb Init surrealDb Database Run App from Source Code Launc

Mário Monteiro 0 Oct 3, 2022
It's a repository to studies. Its idea is to learn about Nx and its plugins.

StudyingNx This project was generated using Nx. ?? Smart, Fast and Extensible Build System Adding capabilities to your workspace Nx supports many plug

Open-ish 4 May 13, 2022
Can see everything, beware of its omniscience, kneel before its greatness.

Can see everything, beware of its omniscience, kneel before its greatness. Summary Presentation Installation Removing Credits Presentation Main goal T

Duc Justin 3 Sep 30, 2022
Reference for How to Write an Open Source JavaScript Library - https://egghead.io/series/how-to-write-an-open-source-javascript-library

Reference for How to Write an Open Source JavaScript Library The purpose of this document is to serve as a reference for: How to Write an Open Source

Sarbbottam Bandyopadhyay 175 Dec 24, 2022
A Web UI toolkit for creating rapid prototypes, experiments and proof of concept projects.

MinimalComps2 A Web UI tookkit for creating rapid prototypes, experiments and proof of concept projects. The site: https://www.minimalcomps2.com/ Full

Keith Peters 32 Apr 18, 2022
we learn the whole concept of JS including Basics like Object, Functions, Array etc. And Advance JS - Understanding DOMs, JQuery, Ajax, Prototypes etc.

JavaScript-for-Complete-Web Development. we learn the whole concept of JS including Basics like Object, Functions, Array etc. And Advance JS - Underst

prasam jain 2 Jul 22, 2022