# flow-text-component

> A component for common operations on strings designed using Flow SDK

Latest version **0.2.6** (published 2019-06-19) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install flow-text-component
pnpm add flow-text-component
yarn add flow-text-component
bun add flow-text-component
```

## 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.2.6 |
| Published | 2019-06-19 |
| First published | 2018-11-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 55.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hackerbay Inc. |
| Maintainers | hackerbayadmin |
| Keywords | string, text, flow |

## Links

- npm: https://www.npmjs.com/package/flow-text-component
- Repository: https://github.com/FlowAppPlatform/flow-text-component
- Homepage: https://github.com/FlowAppPlatform/flow-text-component#readme
- Issues: https://github.com/FlowAppPlatform/flow-text-component/issues
- npm.io page: https://npm.io/package/flow-text-component

## Dependencies (1)

- [flow-platform-sdk](https://npm.io/package/flow-platform-sdk.md) ^1.3.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.2.6 (latest) — 2019-06-19
- 0.2.4 — 2019-03-10
- 0.2.2 — 2019-02-15
- 0.1.9 — 2018-12-26
- 1.0.0 — 2018-11-05

## README

# Flow Text component
A component for common operations on strings designed using Flow SDK.

*To get started, install the package in your NodeJS project*

```
npm i flow-text-component --save
```

*Use the component as below*

```javascript
// require the component
const Component = require('flow-text-component');

// create instance of the Contains component for example
const component = new Component.Contains();
```

*Provide required parameters*

```javascript
// these are required for the Contains component
component.getProperty('Text').data = 'Going forth into the deep.';
component.getProperty('Contains').data = 'for';
```

*Then listen in for port emit events*
```javascript
component.getPort('Contains').onEmit(function() {
  // the text contains the other
});

component.getPort('DoesNotContain').onEmit(function() {
  // the text does not contain the other
});
```

*Execute the component*
```javascript
// add the component to a graph before executing it
const Graph = require('flow-platform-sdk').Graph;
new Graph("graph-1").addComponent(component);

component.execute();
```

#### Conclusion

This is a sample use of the Flow Text component. Check the [docs](./docs/) on how to use other components

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