1.0.7 • Published 3 years ago

empty-strings-nuller v1.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago