# nv-char-whitespace

> nv-char-whitespace =============== - nv-char-whitespace

Latest version **1.0.7** (published 2021-03-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-char-whitespace
pnpm add nv-char-whitespace
yarn add nv-char-whitespace
bun add nv-char-whitespace
```

## 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.7 |
| Published | 2021-03-30 |
| First published | 2021-02-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-char-whitespace
- npm.io page: https://npm.io/package/nv-char-whitespace

## Dependencies (1)

- [nv-char-basic](https://npm.io/package/nv-char-basic.md) ^1.0.0

## Recent versions

- 1.0.7 (latest) — 2021-03-30
- 1.0.6 — 2021-03-30
- 1.0.5 — 2021-03-29
- 1.0.4 — 2021-03-10
- 1.0.3 — 2021-03-10
- 1.0.2 — 2021-03-03
- 1.0.1 — 2021-02-27
- 1.0.0 — 2021-02-27

## README

nv-char-whitespace
===============
- nv-char-whitespace    


install
=======
- npm install nv-char-whitespace 

usage
=====
    
example
-------

    const {sync_gen_from_str} = require("nv-string-stream");
    const {from_generator,STATE_DICT} = require("nv-char-whitespace");


    > STATE_DICT
    { init: 0, executing:1, succ: 2, eof: 3 }


    //meet white-space
    var g = sync_gen_from_str("abc ")
    from_generator(g)
    >
    { g: Object [Generator] {}, rslt: 'abc', state: 2 }
    >
    //begin with white-space
    var g = sync_gen_from_str(" abc ")
    from_generator(g)
    >
    { g: Object [Generator] {}, rslt: 'abc', state: 2 }
    >

    //multi white-space
    var g = sync_gen_from_str("   abc def\n \nghi\t  ")
    > from_generator(g)
    { g: Object [Generator] {}, rslt: 'abc', state: 2 }
    > from_generator(g)
    { g: Object [Generator] {}, rslt: 'def', state: 2 }
    > from_generator(g)
    { g: Object [Generator] {}, rslt: 'ghi', state: 2 }
    > from_generator(g)
    { g: Object [Generator] {}, rslt: '', state: 3 }



    //end-of-file
    var g = sync_gen_from_str("abc")
    from_generator(g)
    >
    { g: Object [Generator] {}, rslt: 'abc', state: 3 }
    >


    //add fake-whiteSpace
    var g = sync_gen_from_str("  ,ab,cd  ")
    > from_generator(g,new Set(","))
    { g: Object [Generator] {}, rslt: 'ab', state: 2 }
    > from_generator(g,new Set(","))
    { g: Object [Generator] {}, rslt: 'cd', state: 2 }
    > from_generator(g,new Set(","))
    { g: Object [Generator] {}, rslt: '', state: 3 }
    >



API
====
- is\_nl(ch) 
- is\_ws(ch)
- is\_nonl\_ws(ch)
- STATE\_DICT
- from\_generator(g,extra\_st)   //same as split(/WHITESPACE/), just for very big string

LICENSE
=======
- ISC

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