mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
13 lines
223 B
JavaScript
13 lines
223 B
JavaScript
'use strict'
|
|
|
|
const slugg = require('slugg')
|
|
|
|
const parseOperator = (profile, a) => {
|
|
return {
|
|
type: 'operator',
|
|
id: slugg(a.name), // todo: find a more reliable way
|
|
name: a.name
|
|
}
|
|
}
|
|
|
|
module.exports = parseOperator
|