@crowdbotics/normalize-empty-string

1.0.1 • Public • Published

@crowdbotics/normalize-empty-string NPM version Build Status Dependency Status

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

Dependents (0)

Package Sidebar

Install

npm i @crowdbotics/normalize-empty-string

Weekly Downloads

2

Version

1.0.1

License

MIT

Last publish

Collaborators

  • taylor-cb
  • crowdbotics-admin