Skip to content

Commit

Permalink
Docs fixed & Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Waqas-Jani committed Dec 28, 2023
1 parent ae09f7c commit a2d6821
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 41 deletions.
14 changes: 7 additions & 7 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@
[![NPM Downloads](https://img.shields.io/npm/dm/@akcybex/jstr.svg)](https://www.npmjs.com/package/@akcybex/jstr)
[![File Size](https://img.shields.io/github/size/akcybex/jstr/dist/jstr.es.js)](https://github.com/akcybex/jstr)

> `@akcybex/jsr` is a JavaScript library inspired
> `@akcybex/jstr` is a JavaScript library inspired
> by [Laravel 'Strings'](https://laravel.com/docs/10.x/strings) offering a chainable API for
> streamlined string manipulation and facilitating common string operations in javascript with enhanced expressiveness.
## Installation

### Using npm

You can install `@akcybex/jsr` using npm:
You can install `@akcybex/jstr` using npm:

```bash
npm install @akcybex/jsr
npm install @akcybex/jstr
```

### Using Yarn

Alternatively, you can use Yarn to add the package:

```bash
yarn add @akcybex/jsr
yarn add @akcybex/jstr
```

## Usage in Node.js

After installing, you can use `@akcybex/jsr` in your Node.js application:
After installing, you can use `@akcybex/jstr` in your Node.js application:

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("hello").repeat(3).upper().toString();
console.log(result); // Outputs: 'HELLOHELLOHELLO'
Expand Down Expand Up @@ -253,7 +253,7 @@ clarity and conciseness in your code.

## Contributing

Contributions to `@akcybex/jsr` are welcome. Please refer to the contributing guidelines for more information.
Contributions to `@akcybex/jstr` are welcome. Please refer to the contributing guidelines for more information.

## License

Expand Down
4 changes: 2 additions & 2 deletions docs/After.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.after("Hello world", "Hello");
console.log(result); // Outputs: 'world'
Expand All @@ -12,7 +12,7 @@ console.log(result); // Outputs: 'world'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("This is my name").toString().trim().after("This is");

Expand Down
4 changes: 2 additions & 2 deletions docs/AfterLast.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("\\App\\Http\\Controllers\\Controller")
.afterLast("\\")
Expand All @@ -14,7 +14,7 @@ console.log(result); // Outputs: 'Controller'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.afterLast("abc123abc456abc789", "abc");

Expand Down
4 changes: 2 additions & 2 deletions docs/Before.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("Hello world").before("world").toString();
console.log(result); // Outputs: 'Hello'
Expand All @@ -12,7 +12,7 @@ console.log(result); // Outputs: 'Hello'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.before("This is my name", "my name");

Expand Down
4 changes: 2 additions & 2 deletions docs/BeforeLast.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("\\App\\Http\\Controllers\\Controller")
.beforeLast("\\")
Expand All @@ -14,7 +14,7 @@ console.log(result); // Outputs: '\\App\\Http\\Controllers'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.beforeLast("abc123abc456abc789", "abc");
console.log(result); // Outputs: 'abc123abc456'
Expand Down
4 changes: 2 additions & 2 deletions docs/Between.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("The big lion and many fox fights each other for food")
.between("big", "fights")
Expand All @@ -15,7 +15,7 @@ console.log(result); // Outputs: 'lion and many fox'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.between(
"The big lion and many fox fights each other for food",
Expand Down
4 changes: 2 additions & 2 deletions docs/BetweenFirst.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("[a]bc[d]").betweenFirst("[", "]").toString();
console.log(result); // Outputs: 'a'
Expand All @@ -12,7 +12,7 @@ console.log(result); // Outputs: 'a'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.betweenFirst("[a]bcd", "[", "");

Expand Down
4 changes: 2 additions & 2 deletions docs/Camel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("foo_bar").camel().toString();
console.log(result); // Outputs: 'fooBar'
Expand All @@ -12,7 +12,7 @@ console.log(result); // Outputs: 'fooBar'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.camel("foo bar");

Expand Down
6 changes: 3 additions & 3 deletions docs/Capitalize.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("hello world").capitalize().toString();
console.log(str); // Outputs: 'Hello World'
Expand All @@ -12,7 +12,7 @@ console.log(str); // Outputs: 'Hello World'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("HeLLo").capitalize().toString();
console.log(str); // Outputs: 'Hello'
Expand All @@ -21,7 +21,7 @@ console.log(str); // Outputs: 'Hello'
### Example#3

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.capitalize("hELLO world");
console.log(str); // Outputs: 'Hello World'
Expand Down
6 changes: 3 additions & 3 deletions docs/Contains.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("Hello world").contains("world");
console.log(result); // Outputs: 'true'
Expand All @@ -12,7 +12,7 @@ console.log(result); // Outputs: 'true'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("This is my name").contains("my name");
console.log(result); // Outputs: 'true'
Expand All @@ -21,7 +21,7 @@ console.log(result); // Outputs: 'true'
### Example#3

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of(
"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop"
Expand Down
6 changes: 3 additions & 3 deletions docs/Headline.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("hello world").headline().toString();
console.log(str); // Outputs: 'Hello World'
Expand All @@ -12,7 +12,7 @@ console.log(str); // Outputs: 'Hello World'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("HeLLo").headline().toString();
console.log(str); // Outputs: 'He Llo'
Expand All @@ -21,7 +21,7 @@ console.log(str); // Outputs: 'He Llo'
### Example#3

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.headline("hELLOworld");
console.log(str); // Outputs: 'H Elloworld'
Expand Down
4 changes: 2 additions & 2 deletions docs/Lower.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("HELLO").lower().toString();
console.log(str); // Outputs: 'hello'
Expand All @@ -12,7 +12,7 @@ console.log(str); // Outputs: 'hello'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.lower("HELLO");
console.log(str); // Outputs: 'hello'
Expand Down
4 changes: 2 additions & 2 deletions docs/Repeat.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("he").repeat(5).toString();
console.log(str); // Outputs: 'hehehehehe'
Expand All @@ -12,7 +12,7 @@ console.log(str); // Outputs: 'hehehehehe'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.repeat("a", 5);
console.log(str); // Outputs: 'aaaaa'
Expand Down
4 changes: 2 additions & 2 deletions docs/Studly.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.of("foo_bar").studly().toString();
console.log(result); // Outputs: 'FooBar'
Expand All @@ -12,7 +12,7 @@ console.log(result); // Outputs: 'FooBar'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const result = JStr.studly("foo bar");

Expand Down
6 changes: 3 additions & 3 deletions docs/Ucfirst.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("hello world").ucfirst().toString();
console.log(str); // Outputs: 'Hello world'
Expand All @@ -12,7 +12,7 @@ console.log(str); // Outputs: 'Hello world'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("hELLO world").ucfirst().toString();
console.log(str); // Outputs: 'HELLO world'
Expand All @@ -21,7 +21,7 @@ console.log(str); // Outputs: 'HELLO world'
### Example#3

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.ucfirst("hELLO world");
console.log(str); // Outputs: 'HELLO world'
Expand Down
4 changes: 2 additions & 2 deletions docs/Upper.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Example#1

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.of("hello").upper().toString();
console.log(str); // Outputs: 'HELLO'
Expand All @@ -12,7 +12,7 @@ console.log(str); // Outputs: 'HELLO'
### Example#2

```javascript
import JStr from "@akcybex/jsr";
import JStr from "@akcybex/jstr";

const str = JStr.upper("hello").toString();
console.log(str); // Outputs: 'HELLO'
Expand Down

0 comments on commit a2d6821

Please sign in to comment.