# jsshort

> It will make your codes much short and easiar

Latest version **0.2.10** (published 2023-11-10) · 0 weekly downloads

## Install

```sh
npm install jsshort
pnpm add jsshort
yarn add jsshort
bun add jsshort
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.10 |
| Published | 2023-11-10 |
| First published | 2023-10-06 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Siddharth Sharma |
| Maintainers | panditsiddharth |
| Keywords | shortjs |

## Links

- npm: https://www.npmjs.com/package/jsshort
- Repository: https://github.com/PanditSiddharth/Tgind
- Homepage: https://github.com/PanditSiddharth/Tgind#readme
- Issues: https://github.com/PanditSiddharth/Tgind/issues
- npm.io page: https://npm.io/package/jsshort

## Recent versions

- 0.2.10 (latest) — 2023-11-10
- 0.2.9 — 2023-11-10
- 0.2.8 — 2023-11-04
- 0.2.7 — 2023-11-04
- 0.2.6 — 2023-11-04
- 0.2.5 — 2023-11-04
- 0.2.4 — 2023-11-04
- 0.2.3 — 2023-11-04
- 0.2.2 — 2023-11-04
- 0.2.1 — 2023-11-04
- 0.2.0 — 2023-11-04
- 0.1.0 — 2023-11-04
- 0.0.1 — 2023-10-08
- 0.0.0 — 2023-10-06

## README

# Short functions
npm i jsshort

you can use like this 

```js
require("jsshort")

let integerValue = int("3") // here int is short function
console.log(integerValue)
```

like this there are many functions

input;
print
int;
str;
float;
bool;
array;

Input output functions:
```js
require("jsshort")

async function sum {
    let a = await input("Enter first number: ")
    let b = await input("Enter 2nd number: ")

    print("Sum of both numbers:", end=" ");
    print(int(a) + int(b))
}

sum();
```

```js
require("jsshort")

async function sum {
    let a = await input("Enter first number: ")
    let b = await input("Enter 2nd number: ")

    // it will store Output of this function in output.txt file
    print("Sum of both numbers:", int(a) + int(b), {file: "./path/output.txt"});
}

sum();
```

Input output functions in typescript
```ts
import f from "jsshort";

async function sum {
    let a:string = await f.input("Enter first number: ")
    let b:string = await f.input("Enter 2nd number: ")
    
    f.print("Sum of both numbers:", {end: " "});
    f.print(f.int(a) + f.int(b))
}

sum();
```

String functions
Uses example
```js
require("jsshort")
let stringg = "This is my string"
let length =string.len();  // uses of len function
console.log(length)
```
more functions name 
len
str
add
sb
ind
lstInd
inString
start
end
upr
lwr
trS
trE
rpc
rpcA
at
chCdAt
locCmp

There are many array functions:
Uses example
```js
require("jsshort")
let arr1 = [1, 2, 3]
let arr2 = [4, 5]
let newArray = arr1.add(arr2)  // uses of add function
console.log(newArray)
```
more functions:
add
ind
lstInd
inArray
forE
rdc
rdcR
fndInd

By https://Telegram.me/PanditSiddharth

---
_Source: https://npm.io/package/jsshort · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
