1.0.7 • Published 4 years ago

empty-strings-nuller v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Empty Strings Nuller

Replaces all fields with empty string in object with null:

const obj = { a: "a", b: "" };
nullEmptyStrings(obj); // => { a: "a", b: null }

Works also on nested objects or objects in array.

Installation

$ npm i empty-strings-nuller

Import

Use in a stadard way:

import nullEmptyStrings from "empty-strings-nuller";

or

const nullEmptyStrings = require("empty-strings-nuller");
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago