Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kant01ne/interview-test


https://github.com/kant01ne/interview-test

Last synced: 22 days ago
JSON representation

Awesome Lists containing this project

README

        

# interview-test

## Install

Clone the repository and install dependencies

```shell
$ git clone https://github.com/Skaelv/interview-test.git
$ cd interview-test
$ npm install
$ grunt
```

## Usage

### Flatten an array of integers

```shell
$ npm run ex1 []
```

* array(opt) : Array to flatten. Don't forget to use quotes as the array will be parsed internally.

The program ignores any non-integer value. e.g.

["string", 2, [-3, 4], [3.8], 9] -> [ 2, -3, 4, 9 ]

### Invite customers to a party

```shell
$ npm run ex2 [ ]
```

* radius(opt, default to 100) : Maximal distance in km to send the invitation
* path(opt, default to "./customer.json"): Path to list of potentially invited customers local file
* lat, lon (opt, default to 53.3381985, -6.2592576): GPS coordinates of party

## Tests

```shell
$ grunt test
```

## Author

Antoine Kevin
([[email protected]](mailto:[email protected]))