Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102798923
README.md
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Feb 24, 07:24
Size
1 KB
Mime Type
text/html
Expires
Wed, Feb 26, 07:24 (2 d)
Engine
blob
Format
Raw Data
Handle
24383323
Attached To
R8244 Eawag_Swing_Weight_Elicitation
README.md
View Options
#
glob
-
watcher
[![
NPM
version
][
npm
-
image
]][
npm
-
url
]
[![
Build
Status
][
travis
-
image
]][
travis
-
url
]
[![
Coveralls
Status
][
coveralls
-
image
]][
coveralls
-
url
]
[![
Dependency
Status
][
david
-
image
]][
david
-
url
]
##
Information
<
table
>
<
tr
>
<
td
>
Package
</
td
><
td
>
glob
-
watcher
</
td
>
</
tr
>
<
tr
>
<
td
>
Description
</
td
>
<
td
>
Watch
globs
</
td
>
</
tr
>
<
tr
>
<
td
>
Node
Version
</
td
>
<
td
>>=
0.9
</
td
>
</
tr
>
</
table
>
##
Usage
```
javascript
var
watch
=
require
(
'
glob
-
watcher
'
);
// callback interface
watch
([
"./*.js"
,
"!./something.js"
],
function
(
evt
){
// evt has what file changed and all that jazz
});
// EE interface
var
watcher
=
watch
([
"./*.js"
,
"!./something.js"
]);
watcher
.
on
(
'
change
'
,
function
(
evt
)
{
// evt has what file changed and all that jazz
});
// add files after it has been created
watcher
.
add
(
"./somefolder/somefile.js"
);
```
[
npm
-
url
]:
https
:
//npmjs.org/package/glob-watcher
[
npm
-
image
]:
https
:
//badge.fury.io/js/glob-watcher.png
[
travis
-
url
]:
https
:
//travis-ci.org/wearefractal/glob-watcher
[
travis
-
image
]:
https
:
//travis-ci.org/wearefractal/glob-watcher.png?branch=master
[
coveralls
-
url
]:
https
:
//coveralls.io/r/wearefractal/glob-watcher
[
coveralls
-
image
]:
https
:
//coveralls.io/repos/wearefractal/glob-watcher/badge.png
[
depstat
-
url
]:
https
:
//david-dm.org/wearefractal/glob-watcher
[
depstat
-
image
]:
https
:
//david-dm.org/wearefractal/glob-watcher.png
[
david
-
url
]:
https
:
//david-dm.org/wearefractal/glob-watcher
[
david
-
image
]:
https
:
//david-dm.org/wearefractal/glob-watcher.png?theme=shields.io
Event Timeline
Log In to Comment