1.1.3 • Published 3 years ago

deep-trim-node v1.1.3

Weekly downloads
587
License
MIT
Repository
-
Last release
3 years ago

⚠️ 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.

1.1.3

3 years ago

1.1.2

9 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago