Aldair47x / 57blocks-backend-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

♛ 57BLOCKS Back-end TEST ♛

Problem Statement

Design a library that converts the values of the properties of an arbitrary object to another language/unit. The conversion rules are configurable.


Mandatory Features

  • The object is arbitrary. If a new object is added, no need to update the code to support it.
  • The maximum nest level of objects hierarchy is 10.
  • The object has properties of type string, integer, float, etc. For strings please use a mock translation service.
  • A configuration is provided so that the library knows which property to convert and how.
  • Please optimize and benchmark memory/cpu usage of your implementation, and send the result together with the code.

Installing and Running

  1. Make sure that you have node installed on your computer.
  2. Fork and clone this repo on your computer.
  3. cd into the root directory and run node index.js.
  4. Check the differents inputs for index.js.

Authors

Follow me! – aldair47x@Twitteraldair47x@gmail.com

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

About

License:MIT License


Languages

Language:JavaScript 100.0%