1.3.4 • Published 4 years ago

obj-key-normalizer v1.3.4

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

About

This is a typscript project for normalizing object keys. There are several configurable options (WIP) for modifying how the normalizer works. There are several examples in the 'tests' directory of the project.

Example

const source = {
    firstName: 'Joe',
    lastName: 'Hartzell',
    address: {
        'line-1': '123 example rd',
        state: 'PA',
        'zip_code': '12345'
    }
};
const options = {
    deep: true,
    case: 'kebab',
}
const normalizer = new Normalizer(options);

const dest = normalizer.Normalize(source);

// dest object output
// {
//      result: {
//          'first-name': 'Joe',
//          'last-name': 'Hartzell',
//          'address': {
//              'line-1': '123 example rd',
//              'state': 'PA',
//              'zip-code': '12345'
//          }
//      }
// }

Contributing

If there are changes/bugs that are found. Please submit a pull request. Any PRs that do not pass through the linter will not be accepted. The project must also build without modifications to the tsconfig file.

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago