NodeJS utilities for EIF file format of Tecent QQ faces
- Download from github
- In the
node_module/
directory, usegit clone https://github.com/momocow/Node-QQ-EIF.git
to download source codes - In the
Node-QQ-EIF/
directory you just cloned, runnpm install
- In the
Download from npm repository(currently not published yet)npm install qq-eif --save
- In your code, use
const eif = require('qq-eif')
to access exported methods
<function>
-
Return
<Array <File>>
a list ofFile
objects under the file system in the .eif file
-
Parameters
src
<string>
the path of the .eif fileallowed_exts
<Array <string>>
if provided, it lists only files with these file extensions; otherwise, all files are listed
<function>
-
Return
<Array <string>>
a list of images file
-
Parameters
src
<string>
the path of the .eif file
-
File extensions of images:
['.bmp', '.jpg', '.gif', '.png']
<function>
#side-effect
-
Extract files from the .eif file
-
Parameters
src
<string>
the path of the .eif filedst
<string>
the directory to contain extracted files and sub-directoriesallow_subdir
<boolean>
keep the fs structure in the .eif file or not; if false, all files are extracted to thedst
directory without creating sub-directoriesallowed_exts
<Array <string>>
if provided, it lists only files with these file extensions; otherwise, all files are listed
<function>
side-effect
-
Extract images from the .eif file
-
Parameters
src
<string>
the path of the .eif filedst
<string>
the directory to contain extracted files and sub-directoriesallow_subdir
<boolean>
keep the fs structure in the .eif file or not; if false, all files are extracted to thedst
directory without creating sub-directories- File extensions of images:
['.bmp', '.jpg', '.gif', '.png']
<object>
- Property
path
<string>
the absolute path under the file system of the .eif file, starting withRoot Entry/...
entry
<object>
referred to the Compound File Binary Format (CFBF)name
<string>
type
<int>
color
<int>
L
<int>
R
<int>
C
<int>
clsid
<string>
state
<int>
start
<int>
size
<int>
storage
<string>
content
<Buffer>