This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

deep-trim-node

1.1.3 • Public • Published

⚠️ This package is deprecated.

deep-trim-node Logo

Recursively String.trim() object properties of type String.

NPM Package Version NPM Package Downloads NPM Package License

Installation

npm install deep-trim-node

Usage Example

var trim = require('deep-trim-node');

var person = {
  name: '   John   ',
  surname: 'Johnson   ',
  age: 26,
  address: {
    street: '1st Street',
    city: 'Los Angeles',
    country: ' USA   ',
  },
  vehicles: ['   BMW', 'Ferrari    ', 'Lamborghini'],
};

person = trim(person);

console.log(person);

{
    name: 'John',
    surname: 'Johnson',
    age: 26,
    address: {
        street: '1st Street',
        city: 'Los Angeles',
        country: 'USA'
    },
    vehicles: [
        'BMW',
        'Ferrari',
        'Lamborghini'
    ]
}

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

License

Distributed under the MIT License.

Package Sidebar

Install

npm i deep-trim-node

Weekly Downloads

577

Version

1.1.3

License

MIT

Unpacked Size

8.76 kB

Total Files

6

Last publish

Collaborators

  • npm