# @fendy3002/string-tools

> A simple application to help converting some text with specific format to desired format using configurable commands.

Latest version **0.1.2** (published 2017-06-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fendy3002/string-tools
pnpm add @fendy3002/string-tools
yarn add @fendy3002/string-tools
bun add @fendy3002/string-tools
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-06-08 |
| First published | 2017-05-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 37 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Fendy Heryanto |
| Maintainers | fendy3002 |
| Keywords | string, tools |

## Links

- npm: https://www.npmjs.com/package/@fendy3002/string-tools
- Repository: https://github.com/fendy3002/QzStringTools
- Homepage: https://github.com/fendy3002/QzStringTools#readme
- Issues: https://github.com/fendy3002/QzStringTools/issues
- npm.io page: https://npm.io/package/@fendy3002/string-tools

## Dependencies (37)

- [qs](https://npm.io/package/qs.md) ^6.3.0
- [react](https://npm.io/package/react.md) ^15.3.2
- [redux](https://npm.io/package/redux.md) ^3.6.0
- [jquery](https://npm.io/package/jquery.md) ^3.1.1
- [lodash](https://npm.io/package/lodash.md) ^4.16.4
- [moment](https://npm.io/package/moment.md) ^2.18.1
- [express](https://npm.io/package/express.md) ^4.15.3
- [webpack](https://npm.io/package/webpack.md) ^1.13.2
- [normalizr](https://npm.io/package/normalizr.md) ^2.2.1
- [react-dnd](https://npm.io/package/react-dnd.md) ^2.1.4
- [react-dom](https://npm.io/package/react-dom.md) ^15.3.2
- [requirejs](https://npm.io/package/requirejs.md) ^2.3.2
- [browserify](https://npm.io/package/browserify.md) ^13.1.0
- [superagent](https://npm.io/package/superagent.md) ^2.3.0
- [change-case](https://npm.io/package/change-case.md) ^3.0.0
- [json-loader](https://npm.io/package/json-loader.md) ^0.5.4
- [react-modal](https://npm.io/package/react-modal.md) ^1.7.7
- [react-redux](https://npm.io/package/react-redux.md) ^4.4.5
- [redux-thunk](https://npm.io/package/redux-thunk.md) ^2.1.0
- [query-string](https://npm.io/package/query-string.md) ^4.2.3
- [react-router](https://npm.io/package/react-router.md) ^2.8.1
- [react-select](https://npm.io/package/react-select.md) ^1.0.0-rc.4
- [rc-pagination](https://npm.io/package/rc-pagination.md) ^1.5.5
- [bootstrap-sass](https://npm.io/package/bootstrap-sass.md) ^3.0.0
- [laravel-elixir](https://npm.io/package/laravel-elixir.md) ^4.0.0
- [react-dropzone](https://npm.io/package/react-dropzone.md) ^3.6.0
- [react-markdown](https://npm.io/package/react-markdown.md) ^2.5.0
- [fixed-data-table](https://npm.io/package/fixed-data-table.md) ^0.6.3
- [react-image-list](https://npm.io/package/react-image-list.md) ^0.5.0
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^4.1.1
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) ^3.8.5
- [react-highlight-words](https://npm.io/package/react-highlight-words.md) ^0.7.2
- [react-loading-overlay](https://npm.io/package/react-loading-overlay.md) ^0.2.4
- [react-copy-to-clipboard](https://npm.io/package/react-copy-to-clipboard.md) ^4.2.3
- [react-dnd-html5-backend](https://npm.io/package/react-dnd-html5-backend.md) ^2.1.2
- [@fendy3002/react-confirm-button](https://npm.io/package/@fendy3002/react-confirm-button.md) ^0.1.4
- [@fendy3002/react-redux-hash-state](https://npm.io/package/@fendy3002/react-redux-hash-state.md) ^0.1.1

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2017-06-08
- 0.1.0 — 2017-05-31

## README

# QzStringTools

A simple application to help converting some text with specific format to desired format using configurable commands.

## Running app

This repo comes with app server, run in http://localhost:3000.

```
git clone https://github.com/fendy3002/QzStringTools.git;

cd QzStringTools;

npm install;

npm start;
```

## Installing

When you want to use this library in your own node project, you can install it via npm install.

```
npm install --save @fendy3002/string-tools
```

## Basic usage

```js
var StringTools = require('@fendy3002/string-tools');
var Config = StringTools.defaultConfig;

var input = 'Hello, world \n' +
        'how, are, you?';

var selectedCommand = null;
for(var i = 0; i < Config.command.length; i++){
    selectedCommand = Config.command[i];
    if(selectedCommand.code == 'sql-single-quote'){ break; }
}

var result = StringTools.convert(input, selectedCommand, Config);
console.log('result', result);
```

## Use cases

### From excel spreadsheet to sql select

<img src="https://cloud.githubusercontent.com/assets/5449185/26616356/10c2f24a-45f8-11e7-9fd7-da96b968b828.gif" 
	alt="From excel spreadsheet (tab delimited) to mysql select union all"
	title="From excel spreadsheet (tab delimited) to mysql select union all"
	style="width: 800px;"/>

### From newline delimited to be part of select in

<img src="https://cloud.githubusercontent.com/assets/5449185/26631554/bf48530e-4635-11e7-8ee6-fb0ec1caef12.gif" 
	alt="From newline delimited to be part of select in"
	title="From newline delimited to be part of select in"
	style="width: 800px;"/>

### From PHP Array to Object syntax

<img src="https://cloud.githubusercontent.com/assets/5449185/26616058/ffc041d4-45f5-11e7-9709-e211e0b59a69.gif"
	alt="From php array syntax to object syntax"
	title="From php array syntax to object syntax"
	style="width: 800px;"/>

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