3.0.1 • Published 10 months ago

string-nan v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

StringNaN

A tiny tool to convert between string and NaN[].

Features

Converts a string and a NaN Array to each other.

Installation

npm install string-nan

Usage

import StringNaN from "string-nan";

const str = "meg";

const nans = StringNaN.toNaNs(str);

console.log(nans);  // [ NaN, NaN, NaN ]

console.log(StringNaN.toString(nans));     // meg
console.log(StringNaN.toString(nans[0]));  // m

nans.reverse();

console.log(StringNaN.toString(nans));  // gem
3.0.1

10 months ago

3.0.0

10 months ago

2.0.3

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago