# nv-string-idtag

> nv-string-idtag =============== - nv-string-idtag - parse/unparse a simple format: - the valid chars can BE [a-z] OR [0-9] OR _ OR $ - the first char can BE [a-z] OR $ - the dollar $ is used as seperator - begin with $ mea

Latest version **1.0.4** (published 2023-06-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-string-idtag
pnpm add nv-string-idtag
yarn add nv-string-idtag
bun add nv-string-idtag
```

## 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.4 |
| Published | 2023-06-27 |
| First published | 2022-10-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-string-idtag
- npm.io page: https://npm.io/package/nv-string-idtag

## Dependencies (1)

- [nv-buf-jstr](https://npm.io/package/nv-buf-jstr.md) ^1.0.13

## Recent versions

- 1.0.4 (latest) — 2023-06-27
- 1.0.3 — 2023-06-27
- 1.0.2 — 2022-10-23
- 1.0.1 — 2022-10-23

## README

nv-string-idtag
===============
- nv-string-idtag    
- parse/unparse a simple format:
-     the valid chars can BE  [a-z] OR [0-9] OR  _  OR  $
-     the first char  can BE  [a-z] OR  $
-     the dollar $    is used as seperator
-     begin with $    means a abs path
-     end   with $    means a dir path

- for test const-string-pool feature  in nvlang  , normally USELESS

install
=======
- npm install nv-string-idtag 




usage
=====
    
        const {
           is_valid_idtag,
           parse,
           unparse,
        } = require("nv-string-idtag") 


example
-------

        > is_valid_idtag("_a")
        false
        >
        > is_valid_idtag("0abc")
        false
        >


        > parse('abc_def');
        [ 'abc_def' ]
        > parse('$abc_def');
        [ '', 'abc_def' ]
        > parse('abc_def$');
        [ 'abc_def', '' ]
        > parse('abc_def$xyz');
        [ 'abc_def', 'xyz' ]
        > parse('$abc_def$xyz');
        [ '', 'abc_def', 'xyz' ]
        > parse('$abc_def$xyz$hij_lmn');
        [ '', 'abc_def', 'xyz', 'hij_lmn' ]
        > parse('$abc_def$xyz$hij_lmn$');
        [ '', 'abc_def', 'xyz', 'hij_lmn', '' ]
        >

        > unparse([ '', 'abc_def', 'xyz', 'hij_lmn', '' ])
        '$abc_def$xyz$hij_lmn$'


API
====
- is\_valid\_idtag(s)
- parse(s)
- unparse(arr)

LICENSE
=======
- ISC

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