Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andrelmlins/react-string-checker

String Literal Searcher
https://github.com/andrelmlins/react-string-checker

checker i18n language react string-checker

Last synced: about 3 hours ago
JSON representation

String Literal Searcher

Awesome Lists containing this project

README

        

# React String Checker

[![npm version](https://badge.fury.io/js/react-string-checker.svg)](https://badge.fury.io/js/react-string-checker) • [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/andrelmlins/react-string-checker/blob/master/LICENSE) • [![Build Status](https://travis-ci.com/andrelmlins/react-string-checker.svg?branch=master)](https://travis-ci.com/andrelmlins/react-string-checker) • [![Dependencies](https://david-dm.org/andrelmlins/react-string-checker.svg)](https://david-dm.org/andrelmlins/react-string-checker) • [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/andrelmlins/react-string-checker.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/andrelmlins/react-string-checker/context:javascript)

## Basic Use

```
npx react-string-checker
# or
npm i -g react-string-checker
react-string-checker
```

## Using in project

### Installation

```
npm i --save-dev react-string-checker
# or
yarn add -D react-string-checker
```

### Starting

#### Insert into `package.json` file script:

```
...
"scripts": {
...
"string-checker": "react-string-checker"
...
}
...
```

#### Run the command:

```
yarn string-checker
```

## Using in NodeJS:

### Running checker

```javascript
const CheckerStrings = require('react-string-checker');

const checkerStrings = new CheckerStrings('./src');

checkerStrings.run();
```

### Get checker result

```javascript
const CheckerStrings = require('react-string-checker');

const checkerStrings = new CheckerStrings('./src');

const strings = checkerStrings.listAllStrings();
```

## NPM Statistics

Download stats for this NPM package

[![NPM](https://nodei.co/npm/react-string-checker.png)](https://nodei.co/npm/react-string-checker/)

## License

React String Checker is open source software [licensed as MIT](https://github.com/andrelmlins/react-string-checker/blob/master/LICENSE).