@ximeraproject/kpathsea
v1.0.2
Published
Enough kpathsea to power Ximera
Downloads
2
Readme
"kpathsea" for the web
This isn't realy kpathsea, but rather just barely enough to support the Ximera cloud. It would be nice to implement more of kpathsea.
The included tool lsr2json
will convert the ls-R
into a .json
file that can later be loaded as follows:
import Kpathsea from 'kpathsea'
const kpathsea = new Kpathsea({ db: theOutputFromLsr2json } );
Then it is possible to search for files by name with
kpathsea.findMatch( theBasename );
You can find all matches using kpathsea.findMatches
.