Repository URL to install this package:
|
Version:
1.9.1-1486597190 ▾
|
{
"_args": [
[
"fsevents@git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"/vso/work/2/s"
]
],
"_from": "bpasero/fsevents#vscode",
"_id": "fsevents@0.3.8",
"_inCache": true,
"_location": "/fsevents",
"_phantomChildren": {},
"_requested": {
"hosted": {
"directUrl": "https://raw.githubusercontent.com/bpasero/fsevents/fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01/package.json",
"gitUrl": "git://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"httpsUrl": "git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"shortcut": "github:bpasero/fsevents#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"ssh": "git@github.com:bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"sshUrl": "git+ssh://git@github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"type": "github"
},
"name": "fsevents",
"raw": "fsevents@git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"rawSpec": "git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"scope": null,
"spec": "git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"type": "hosted"
},
"_requiredBy": [
"/"
],
"_resolved": "git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"_shasum": "98f34a341339baef188083a0e3522bbe235f618d",
"_shrinkwrap": null,
"_spec": "fsevents@git+https://github.com/bpasero/fsevents.git#fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"_where": "/vso/work/2/s",
"author": {
"email": "pip@pipobscure.com",
"name": "Philipp Dunkel"
},
"bugs": {
"url": "https://github.com/strongloop/fsevents/issues"
},
"dependencies": {
"nan": "^2.3.0"
},
"description": "Native Access to Mac OS-X FSEvents",
"devDependencies": {
"tap": "~0.4.8"
},
"engines": {
"node": ">=0.8.0"
},
"gitHead": "fe2aaccaaffbd69a23374cf46a8c6bafe8e51b01",
"gypfile": true,
"homepage": "https://github.com/strongloop/fsevents",
"keywords": [
"fsevents",
"mac"
],
"license": "MIT",
"main": "fsevents.js",
"name": "fsevents",
"optionalDependencies": {},
"os": [
"darwin"
],
"readme": "# FSEvents [](https://nodei.co/npm/fsevents/)\n## Native Access to Mac OS-X FSEvents\n\n * [Node.js](http://nodejs.org/)\n * [Github repo](https://github.com/strongloop/fsevents.git)\n * [Module Site](https://github.com/strongloop/fsevents)\n * [NPM Page](https://npmjs.org/package/fsevents)\n\n## Installation\n\n\t$ npm install -g node-gyp\n\t$\tgit clone https://github.com/strongloop/fsevents.git fsevents\n\t$ cd fsevents\n\t$ node-gyp configure build\n\nOR SIMPLY\n\n\t$ npm install fsevents\n\n## Usage\n\n```js\nvar fsevents = require('fsevents');\nvar watcher = fsevents(__dirname);\nwatcher.on('fsevent', function(path, flags, id) { }); // RAW Event as emitted by OS-X\nwatcher.on('change', function(path, info) {}); // Common Event for all changes\nwatcher.start() // To start observation\nwatcher.stop() // To end observation\n```\n\n### Events\n\n * *fsevent* - RAW Event as emitted by OS-X\n * *change* - Common Event for all changes\n * *created* - A File-System-Item has been created\n * *deleted* - A File-System-Item has been deleted\n * *modified* - A File-System-Item has been modified\n * *moved-out* - A File-System-Item has been moved away from this location\n * *moved-in* - A File-System-Item has been moved into this location\n\nAll events except *fsevent* take an *info* object as the second parameter of the callback. The structure of this object is:\n\n```js\n{\n \"event\": \"<event-type>\",\n \"id\": <eventi-id>,\n \"path\": \"<path-that-this-is-about>\",\n \"type\": \"<file|directory|symlink>\",\n \"changes\": {\n \"inode\": true, // Has the iNode Meta-Information changed\n \"finder\": false, // Has the Finder Meta-Data changed\n \"access\": false, // Have the access permissions changed\n \"xattrs\": false // Have the xAttributes changed\n },\n \"flags\": <raw-flags>\n}\n```\n\n## MIT License\n\nCopyright (C) 2010-2014 Philipp Dunkel\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n",
"readmeFilename": "Readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/strongloop/fsevents.git"
},
"scripts": {
"install": "node-gyp rebuild",
"test": "tap ./test"
},
"version": "0.3.8"
}