# parsetext2json

> parse string to a dictionary with eliminating commas, periods, question mark and exclamation mark.

Latest version **1.0.6** (published 2020-04-01) · ISC license · 0 weekly downloads

## Install

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

## 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.6 |
| Published | 2020-04-01 |
| First published | 2020-04-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | chiatsekuo |
| Maintainers | chiatsekuo |

## Links

- npm: https://www.npmjs.com/package/parsetext2json
- Repository: https://github.com/chiatsekuo/parseText2Json
- Homepage: https://github.com/chiatsekuo/parseText2Json#readme
- Issues: https://github.com/chiatsekuo/parseText2Json/issues
- npm.io page: https://npm.io/package/parsetext2json

## Recent versions

- 1.0.6 (latest) — 2020-04-01
- 1.0.5 — 2020-04-01
- 1.0.4 — 2020-04-01
- 1.0.3 — 2020-04-01
- 1.0.2 — 2020-04-01
- 1.0.1 — 2020-04-01
- 1.0.0 — 2020-04-01

## README

![npm](https://img.shields.io/npm/v/parsetext2json) ![NPM](https://img.shields.io/npm/l/parsetext2json) ![npm](https://img.shields.io/npm/dy/parsetext2json)
# parseText2Json

This repository lets you easily parse any `.txt` file containing strings or numbers into a dictionary format (JSON Object) that counts the frequency of each word/ number.

### How to use it?

1. Run `npm i parsetext2json` in your project directory. See an example in the next step.

2. Using *Node.Js* to run the code in `index.js`

   ```javascript
   const parse = require('parsetext2json');
   
   const filePath = 'input.txt';
   const output = parse.parseString(filePath);
   console.log(output);
   ```

3. The output should be like below:

   ```javascript
   [ { value: 'What', count: 1 },
     { value: 'is', count: 2 },
     { value: 'Lorem', count: 5 },
     { value: 'Ipsum', count: 5 },
     { value: 'simply', count: 1 },
     { value: 'dummy', count: 2 },
     { value: 'text', count: 2 },
    				...
    				...
    				...
     { value: 'PageMaker', count: 1 },
     { value: 'including', count: 1 },
     { value: 'versions', count: 1 } ]
   ```

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