# ftaskrunner-stirng

> Strign Fluent tasks for FTaskRunner

Latest version **1.0.0** (published 2016-04-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install ftaskrunner-stirng
pnpm add ftaskrunner-stirng
yarn add ftaskrunner-stirng
bun add ftaskrunner-stirng
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-23 |
| First published | 2016-04-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | javadparvaresh |
| Maintainers | javadparvaresh |
| Keywords | fluent, nodejs, task, sync, mysql |

## Links

- npm: https://www.npmjs.com/package/ftaskrunner-stirng
- Repository: https://github.com/javadparvaresh/FTaskRunner-String
- Issues: https://github.com/javadparvaresh/FTaskRunner-String/issues
- npm.io page: https://npm.io/package/ftaskrunner-stirng

## Dependencies (1)

- [ftaskrunner](https://npm.io/package/ftaskrunner.md) ~1.0.0

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-04-23

## README

# FTaskRunner-String

This library include string tasks for FTaskRunner.

#Installation

```shell
npm install ftaskrunner-string
```  

#Tasks

## string

This task allows you to create a string value and pass to next block.

> you can put parameter name between brackets({}) to replace with context parameters

> you can use {$$input} to replace with $$input value.   


```javascript
    root
        .string("javad")
        .addParam("param1")
        .string("parvareshi")
        .addParam("param2")
        .string("developer")
        .string("{param1} {param2} is {$$input}")
        
    // 'javad parvareshi is developer'
```

## stringReplace

Searches a string for a specified value, or a regular expression, 
and returns a new string where the specified values are replaced

```javascript
    root
        .string("ftask is awesome")
        .stringReplace(
            "ftask", //searchvalue 
            "ftaskrunner" // newvalue
        );
    
    // 'ftaskrunner is awesome'
    
```

##stringSplit

Splits a string into an array of substrings


```javascript
    root
        .string("ftask is awesome")
        .stringSplit(
            " ", //separator
            3 // limit
        );
    
    // ['ftaskrunner','is','awesome']
    
```

##stringSubstr

Extracts the characters from a string, 
beginning at a specified start position, 
and through the specified number of character


```javascript
    root
        .string("ftask is awesome")
        .stringSubstr(
            0, // start
            4 // end
        );
    
    // 'ftask'
    
```

##stringToLowerCase

Converts a string to lowercase letters


```javascript
    root
        .string("FTask is awesome")
        .stringToLowerCase();
    
    // 'ftask is awesome'
    
```


##stringToUpperCase

Converts a string to uppercase letters


```javascript
    root
        .string("FTask is awesome")
        .stringToUppetCase();
    
    // 'FTASK IS AWESOME'
    
```

##stringTrim

Removes whitespace from both ends of a string


```javascript
    root
        .string(" ftask is awesome ")
        .trim();
    
    // 'ftask is awesome'
    
```

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