WebFind
Find files in browser with help of serverside.
Install
npm i webfind -g
Use as standalone
Start webfind
, go to url http://localhost:1337
API
Client API
webfind(element [, prefix], callback)
- element - html element, or selector
- prefix - (optional) prefix to url (same as in server)
- callback - function to call after init
When prefix set in server and client, you should use same prefix in html.
For example, if you use prefix /webfind
you should connect
webfind script in this way:
<script src="/webfind/webfind.js"></script>
Server API
webfind(options);
Could be used as middleware, or for init WebFind
.
webfind.middle(options);
Middleware function if there is a need of init socket
in another place.
webfind
Use as middleware
To use WebFind
in your programs you should make local install:
npm i webfind express --save
And use it in your program
/* server.js */ var webfind = http = express = app = server = http port = 1337 ip = '0.0.0.0'; app ; server;
<!-- index.html -->
License
MIT