Search
Preparing search index...
The search index is not available
segment-dict
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"lib/fs/line"
External module "lib/fs/line"
Index
Type aliases
IOptions
IPromise
Stream
IStream
Line
IStream
Line
With
Value
Variables
Promise
fs
path
split2
stream
Functions
by
Line
create
Stream
Line
read
File
Line
wrap
Stream
ToPromise
Type aliases
IOptions
IOptions
:
{
mapper
?:
any
;
onclose
?:
any
;
ondata
?:
any
;
onfinish
?:
any
;
onpipe
?:
any
;
onready
?:
any
}
Type declaration
mapper
:
function
mapper
(
data
:
string
)
:
any
Parameters
data:
string
Returns
any
onclose
:
function
onclose
(
...
argv
:
any
[]
)
:
any
Parameters
Rest
...
argv:
any
[]
Returns
any
ondata
:
function
ondata
(
...
argv
:
any
[]
)
:
any
Parameters
Rest
...
argv:
any
[]
Returns
any
onfinish
:
function
onfinish
(
...
argv
:
any
[]
)
:
any
Parameters
Rest
...
argv:
any
[]
Returns
any
onpipe
:
function
onpipe
(
src
:
any
)
:
any
Parameters
src:
any
Returns
any
onready
:
function
onready
(
...
argv
:
any
[]
)
:
any
Parameters
Rest
...
argv:
any
[]
Returns
any
IPromise
Stream
IPromise
Stream<T>
:
Promise
<
T
>
&
{
stream
:
T
}
Type parameters
T
IStream
Line
IStream
Line
:
IPipe
<
ReadStream
,
NodeJS.WritableStream
>
IStream
Line
With
Value
IStream
Line
With
Value<T>
:
IStreamLine
&
{
value
?:
T
}
Type parameters
T
Variables
Promise
Promise
:
any
fs
fs
:
any
Created by user on 2018/4/11/011.
path
path
:
any
split2
split2
:
any
stream
stream
:
any
Functions
by
Line
by
Line
(
fn
?:
any
, options
?:
IOptions
)
:
any
Parameters
Optional
fn:
any
Default value
options:
IOptions
= {}
Returns
any
create
Stream
Line
create
Stream
Line
(
file
:
string
, options
:
IOptions
)
:
IStreamLine
create
Stream
Line
(
file
:
string
, fn
?:
(
data
:
string
)
=>
any
, options
?:
IOptions
)
:
IStreamLine
Parameters
file:
string
options:
IOptions
Returns
IStreamLine
Parameters
file:
string
Optional
fn:
(
data
:
string
)
=>
any
(
data
:
string
)
:
any
Parameters
data:
string
Returns
any
Optional
options:
IOptions
Returns
IStreamLine
read
File
Line
read
File
Line
(
file
:
string
, options
:
IOptions
)
:
IPromiseStream
<
IStreamLine
>
read
File
Line
(
file
:
string
, fn
?:
(
data
:
string
)
=>
any
, options
?:
IOptions
)
:
IPromiseStream
<
IStreamLine
>
Parameters
file:
string
options:
IOptions
Returns
IPromiseStream
<
IStreamLine
>
Parameters
file:
string
Optional
fn:
(
data
:
string
)
=>
any
(
data
:
string
)
:
any
Parameters
data:
string
Returns
any
Optional
options:
IOptions
Returns
IPromiseStream
<
IStreamLine
>
wrap
Stream
ToPromise
wrap
Stream
ToPromise<T>
(
stream
:
T
)
:
IPromiseStream
<
T
>
Type parameters
T
:
NodeJS.WritableStream
Parameters
stream:
T
Returns
IPromiseStream
<
T
>
README
Globals
"index"
"lib/dict"
"lib/fs/line"
"lib/fs/stream"
"lib/fs/sync"
"lib/loader/_
class"
"lib/loader/index"
"lib/loader/jieba/index"
"lib/loader/line"
"lib/loader/opencc/index"
"lib/loader/opencc/scheme"
"lib/loader/segment/index"
"lib/loader/segment/synonym"
"lib/loader/stopword"
"project.config"
"script/extract-
char"
"script/publish-
after"
"script/sort-
line"
"script/sort.dict_
synonym"
"script/sort_
list_
synonym"
"script/util"
IOptions
IPromise
Stream
IStream
Line
IStream
Line
With
Value
Promise
fs
path
split2
stream
by
Line
create
Stream
Line
read
File
Line
wrap
Stream
ToPromise
Generated using
TypeDoc
Created by user on 2018/4/11/011.