{"_id":"grunt-check-online","_rev":"44-0fecdb3d8e14a69dbb6b5537a611dff5","name":"grunt-check-online","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"grunt-check-online","version":"0.1.0","keywords":["gruntplugin","spmplugin"],"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"_id":"grunt-check-online@0.1.0","maintainers":[{"name":"lepture","email":"lepture@me.com"}],"homepage":"https://github.com/spmjs/grunt-check-online","bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"dist":{"shasum":"ea6665d0ac0b359103aebacf146e95a9a8ff8200","tarball":"https://registry.npmjs.org/grunt-check-online/-/grunt-check-online-0.1.0.tgz","integrity":"sha512-yBmwZeRzsNYD0QazwmHt5fns3NwAyotbEVUEVHxZ7C/kQ9QR+wPKdOmghhQsIyim90RKwDWEHp8P1st5tC01YQ==","signatures":[{"sig":"MEUCIBQx6LvpUGMNN1197hY/5S5gSP8VntF+dIcFm+f60QbGAiEA34abV1N0VXYoWiGKPBOptcL8rrjlj+VWVI78MBXpBYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","engines":{"node":">= 0.8.6"},"_npmUser":{"name":"lepture","email":"lepture@me.com"},"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"_npmVersion":"1.2.14","description":"check if the file is online.","directories":{},"dependencies":{"async":"~0.2.6"}},"0.1.1":{"name":"grunt-check-online","version":"0.1.1","keywords":["gruntplugin","spmplugin"],"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"_id":"grunt-check-online@0.1.1","maintainers":[{"name":"lepture","email":"lepture@me.com"},{"name":"afc163","email":"afc163@gmail.com"}],"homepage":"https://github.com/spmjs/grunt-check-online","bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"dist":{"shasum":"fa1e2f7b9906fdfd957aab8515c9c0d703472435","tarball":"https://registry.npmjs.org/grunt-check-online/-/grunt-check-online-0.1.1.tgz","integrity":"sha512-VNKfLdNu5+1noqOdfvKOTZToyf7AslOu34mpVzdXuvX3xHTS6BplOfe9iofPVvYb70E1mwGd2pBaJk6MQYL1aw==","signatures":[{"sig":"MEYCIQCIte9tpf0Ec9ON4vVpZDZ8fLpxDIvNbgnewnhC1eKvBgIhAIN4qssS5TNt2mzuGc51UJcAytL3FgidURaXHSquhHXU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","engines":{"node":">= 0.8.6"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"_npmVersion":"1.2.17","description":"check if the file is online.","directories":{},"dependencies":{"async":"~0.2.6"}},"0.1.2":{"name":"grunt-check-online","version":"0.1.2","keywords":["gruntplugin","spmplugin"],"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"_id":"grunt-check-online@0.1.2","maintainers":[{"name":"lepture","email":"lepture@me.com"},{"name":"afc163","email":"afc163@gmail.com"}],"homepage":"https://github.com/spmjs/grunt-check-online","bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"dist":{"shasum":"2b034fbd18b95a995651ad6bfdd9f21c712dde2a","tarball":"https://registry.npmjs.org/grunt-check-online/-/grunt-check-online-0.1.2.tgz","integrity":"sha512-BLnprZ6vWhrgtiLxygr8+KE98nvn8j2SeLOd4FlHhSHorHC4F/imMKFWs2AehIJoW7UNsgLgkAqLCOI4pXeX/Q==","signatures":[{"sig":"MEYCIQDbWCWu1iS/4AkSrLKBkd35+VrT8u59reWW0r4m3RytwQIhALquGl9E2qJv+eEeG0dmu8KZ0kkqVl4ZyDYYI3dQ/UEd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","engines":{"node":">= 0.8.6"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"_npmVersion":"1.2.17","description":"check if the file is online.","directories":{},"dependencies":{"async":"~0.2.6"}},"0.1.3":{"name":"grunt-check-online","version":"0.1.3","keywords":["gruntplugin","spmplugin"],"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"_id":"grunt-check-online@0.1.3","maintainers":[{"name":"lepture","email":"lepture@me.com"},{"name":"afc163","email":"afc163@gmail.com"}],"homepage":"https://github.com/spmjs/grunt-check-online","bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"dist":{"shasum":"3690d0d9eb03f45e83026a123260a55f187f1360","tarball":"https://registry.npmjs.org/grunt-check-online/-/grunt-check-online-0.1.3.tgz","integrity":"sha512-5+1/Bag8SDD0uax3ky6kTYC81SzSOLE80TENy66X+SxHUkAAarsghptceOgH423WbyRyWmX0TNeSSYuLuwXCrw==","signatures":[{"sig":"MEQCICWlsULHYe4Ml8mp/gwXZLxIwSYr7so7suJOpD9Gp6PhAiBreAQ4jOCZMigRsROpjhhmrI2pnF9wPJApcQSIZV8oDQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","engines":{"node":">= 0.8.6"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"_npmVersion":"1.2.17","description":"check if the file is online.","directories":{},"dependencies":{"async":"~0.2.6"}},"0.2.0":{"name":"grunt-check-online","version":"0.2.0","keywords":["gruntplugin","spmplugin"],"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"_id":"grunt-check-online@0.2.0","maintainers":[{"name":"afc163","email":"afc163@gmail.com"}],"homepage":"https://github.com/spmjs/grunt-check-online","bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"dist":{"shasum":"d89e2d972e848faa203c8014f28dfc244e3d3732","tarball":"https://registry.npmjs.org/grunt-check-online/-/grunt-check-online-0.2.0.tgz","integrity":"sha512-rGCC8Mjrqiesiddt/X6d851npNdLGSx3DriyftyqxXeBo9xhr3ZV1EqdkXR4eIXR/FRllQDhoDmpq4q+1RNrUA==","signatures":[{"sig":"MEUCIDDXPOAjdH6LzUSgUZ6jKmIyDEx1we/RxdPfjCHvfbo3AiEAhXkGUgxsJs/u75UlPaoYkmfm0aB6DMJ5UgZQzXFGLbg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","engines":{"node":">= 0.8.6"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"_npmVersion":"1.3.21","description":"check if the file is online.","dependencies":{"async":"~0.2.6"},"directories":{}},"0.3.0":{"name":"grunt-check-online","version":"0.3.0","keywords":["gruntplugin","spmplugin"],"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"_id":"grunt-check-online@0.3.0","maintainers":[{"name":"lepture","email":"lepture@me.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"popomore","email":"sakura9515@gmail.com"}],"homepage":"https://github.com/spmjs/grunt-check-online","bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"dist":{"shasum":"3470151426e2603bbbc00c022513af6d5e64a4ec","tarball":"https://registry.npmjs.org/grunt-check-online/-/grunt-check-online-0.3.0.tgz","integrity":"sha512-bhNk39atverZeQzTypdyRyHN2Yr5hrG/z/hELYIGmw2IdIKyIMyx/eFtjT9lzuYayAEdu0oidFb0SmY/25/fAg==","signatures":[{"sig":"MEUCIQCgV8MjkhTPMC8aGScM8JWkUp3joI/wVU9AZZ7fmNRMgQIgMZkbEcr1wLzAsGAbWhK/KGLyGEvP3y83gdwK6bz36Gk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"Gruntfile.js","_from":".","_shasum":"3470151426e2603bbbc00c022513af6d5e64a4ec","engines":{"node":">= 0.8.6"},"gitHead":"cc7e149672fb4e1de8f85bd75527f7a13da707a6","scripts":{},"_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"_npmVersion":"2.1.18","description":"check if the file is online.","_nodeVersion":"0.11.12","dependencies":{"async":"~0.2.6"},"directories":{}}},"time":{"created":"2013-03-08T06:40:37.502Z","modified":"2025-03-08T01:35:37.901Z","0.1.0a1":"2013-03-08T06:40:41.668Z","0.1.0a2":"2013-03-26T03:47:26.709Z","0.1.0a3":"2013-03-27T11:26:14.360Z","0.1.0":"2013-04-01T02:45:14.009Z","0.1.1":"2013-06-18T12:05:59.482Z","0.1.2":"2013-07-05T08:09:23.122Z","0.1.3":"2013-08-28T05:31:44.922Z","0.2.0":"2014-01-15T06:42:53.442Z","0.3.0":"2015-01-18T04:18:01.037Z"},"bugs":{"url":"https://github.com/spmjs/grunt-check-online/issues"},"author":{"url":"http://lepture.com","name":"Hsiaoming Yang","email":"lepture@me.com"},"homepage":"https://github.com/spmjs/grunt-check-online","keywords":["gruntplugin","spmplugin"],"repository":{"url":"git://github.com/spmjs/grunt-check-online.git","type":"git"},"description":"check if the file is online.","maintainers":[{"email":"afc163@gmail.com","name":"afc163"},{"email":"sakura9515@gmail.com","name":"popomore"}],"readme":"# grunt-check-online\n\n> Check if the file is online\n\n## Getting Started\n\nThis plugin requires Grunt `~0.4.0`\n\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\n\n```shell\nnpm install grunt-check-online\n```\n\nOne the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\ngrunt.loadNpmTasks('grunt-check-online');\n```\n\n## The \"check-online\" task\n\n### Overview\n\nIn your project's Gruntfile, add a section named `check-online` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  pkg: grunt.file.readJSON('package.json'),\n\n  'check-online': {\n    options: {\n        // the response status code should be 404\n        statusCode: 404,\n        server: 'http://example.com',\n        exitOnFail: true\n    },\n    your_target: {\n        files: [{\n            cwd: 'directory',\n            src: '**/*',\n            // path on the server\n            dest: '<%= pkg.name %>/<%= pkg.version %>'\n        }]\n    },\n  },\n})\n```\n\n### Options\n\n\n#### options.statusCode\nType: `Number`\nDefault value: `404`\n\nThe response should return this status code.\n\n#### options.server\nType: `String`\nDefault value: `http://localhost`\n\nThe server.\n\n#### options.onFailure\nType: `function`\nDefault value: `null`\n\nCallback when check failed.\n\n## Changelog\n\n**Jan 18th, 2015** `0.3.0`\n\nfix fileObj using expand\n\n**October 28th, 2013** `0.1.3`\n\nTreat network error like 404 status.\n\n`0.1.2`\n\nUpdate output for error code.\n\n**June 18th, 2013** `0.1.1`\n\nAdd option onFailure.\n\n**April 1st, 2013** `0.1.0`\n\nFirst version.\n","readmeFilename":"README.md","users":{"afc163":true}}