UNPKG
pelias-model
Version:
latest (10.6.0)
10.6.0
10.5.0
10.4.0
10.3.0
10.2.0
10.1.0
10.0.0
9.4.0
9.3.0
9.2.0
9.1.1
9.1.0
9.0.0
8.1.0
8.0.0
7.2.1
7.2.0
7.1.0
7.0.0
6.0.0
5.13.0
5.12.0
5.11.1
5.11.0
5.10.0
5.9.0
5.8.0
5.7.2
5.7.1
5.7.0
5.6.0
5.5.2
5.5.1
5.5.0
5.4.0
5.3.2
5.3.1
5.3.0
5.2.0
5.1.0
5.0.1
5.0.0
4.11.0
4.10.1
4.10.0
4.9.0
4.8.1
4.8.0
4.7.1
4.7.0
4.6.0
4.5.1
4.5.0
4.4.0
4.3.0
4.2.0
4.1.0
4.0.0
3.1.0
3.0.0
2.1.0
2.0.0
1.1.0
1.0.1
1.0.0
0.4.0
0.3.0
0.2.0
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
0.0.0
Pelias data models
github.com/pelias/model
pelias/model
pelias-model
/
DocumentMapperStream.js
10 lines
(7 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
through =
require
(
'through2'
);
function
createDocumentMapperStream
(
) {
return
through.
obj
(
function
(
model, enc, next
){
next
(
null
, model.
toESDocument
()); }); }
module
.
exports
= createDocumentMapperStream;