1.0.7 • Published 2 years ago

empty-strings-nuller v1.0.7

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

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago