Skip to content

NicolasKieffer/node-ezs-istex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basics statements for ezs

This package cannot be used alone. EZS has to be installed.

Usage

var ezs = require('ezs');
ezs.use(require('ezs-istex'));

Statements

ISTEXDownload

Come after : ISTEXRequest

This plugin will download the selected file contained in the result of ISTEX API.

.pipe(ezs('ISTEXDownload', {
  criteria: {                       // Criteria
    "extension": "txt",
    "original": false,
    "mimetype": "text/plain"
  },
  out: "/my/path/",                 // Output path
  key: "fulltext"                   // Which key contain the data
}))

ISTEXRegroup

Come after : ISTEXKeywords (for example)

This plugin will transform Array into Object.

.pipe(ezs('ISTEXRegroup', {
  out: "myFile.json" // Will save result here
}))

An array like :

[
  { "id": "0", ...},
  { "id": "1", ...},
  ...
]

will be transformed into :

{
  "0" : { "id": "0", ...},
  "1" : { "id": "1", ...},
}

ISTEXGraph

Come after : (ISTEXKeywords && ISTEXRegroup)

This plugin create a graph document-document with keywords

.pipe(ezs('ISTEXGraphs', {
  options: {
    out: graphFile // Will save result here
  }
}))

ISTEXKeywords

Come after : (ISTEXDownload)

this plugin extract keywords of given .txt files

.pipe(ezs('ISTEXKeywords', {
  out: res.out // Will save result here
}))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%