Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@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

Keywords

install

npm i @crowdbotics/normalize-empty-string

Downloadsweekly downloads

8

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability