@crowdbotics/normalize-empty-string
v1.0.1
Published
Nor
Downloads
2
Readme
@crowdbotics/normalize-empty-string
String type attributes must have lengths greater than zero while some of the properties from the 3rd API response may contain an empty string. This function will convert those empty string values to 'NULL'.
Installation
$ npm install --save @crowdbotics/normalize-empty-string
Usage
const normalizeEmptyString = require('@crowdbotics/normalize-empty-string');
normalizeEmptyString({
hello: ''
});
License
MIT © Crowdbotics