"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/sha/package.json" (8 Mar 2017, 3322 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) JSON source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {
    2   "_from": "sha@>=2.0.1 <2.1.0",
    3   "_id": "sha@2.0.1",
    4   "_location": "/sha",
    5   "_nodeVersion": "1.6.2",
    6   "_npmUser": {
    7     "name": "forbeslindesay",
    8     "email": "forbes@lindesay.co.uk"
    9   },
   10   "_npmVersion": "2.7.1",
   11   "_phantomChildren": {},
   12   "_requiredBy": [
   13     "/npm"
   14   ],
   15   "_resolved": "https://registry.npmjs.org/sha/-/sha-2.0.1.tgz",
   16   "_shasum": "6030822fbd2c9823949f8f72ed6411ee5cf25aae",
   17   "_shrinkwrap": null,
   18   "bugs": {
   19     "url": "https://github.com/ForbesLindesay/sha/issues"
   20   },
   21   "dependencies": {
   22     "graceful-fs": "^4.1.2",
   23     "readable-stream": "^2.0.2"
   24   },
   25   "description": "Check and get file hashes",
   26   "devDependencies": {
   27     "mocha": "~1.9.0"
   28   },
   29   "directories": {},
   30   "dist": {
   31     "shasum": "6030822fbd2c9823949f8f72ed6411ee5cf25aae",
   32     "tarball": "http://registry.npmjs.org/sha/-/sha-2.0.1.tgz"
   33   },
   34   "gitHead": "ce7c72ba753d886fb46c396cbadcbfc8eac25b4f",
   35   "homepage": "https://github.com/ForbesLindesay/sha",
   36   "license": "(BSD-2-Clause OR MIT)",
   37   "maintainers": [
   38     {
   39       "name": "forbeslindesay",
   40       "email": "forbes@lindesay.co.uk"
   41     },
   42     {
   43       "name": "kenan",
   44       "email": "kenan@kenany.me"
   45     },
   46     {
   47       "name": "thefourtheye",
   48       "email": "thechargingvolcano@gmail.com"
   49     }
   50   ],
   51   "name": "sha",
   52   "optionalDependencies": {},
   53   "readme": "# sha\n\nCheck and get file hashes (using any algorithm)\n\n[![Build Status](https://img.shields.io/travis/ForbesLindesay/sha/master.svg)](https://travis-ci.org/ForbesLindesay/sha)\n[![Dependency Status](https://img.shields.io/gemnasium/ForbesLindesay/sha.svg)](https://gemnasium.com/ForbesLindesay/sha)\n[![NPM version](https://img.shields.io/npm/v/sha.svg)](http://badge.fury.io/js/sha)\n\n## Installation\n\n    $ npm install sha\n\n## API\n\n### check(fileName, expected, [options,] cb) / checkSync(filename, expected, [options])\n\nAsynchronously check that `fileName` has a \"hash\" of `expected`.  The callback will be called with either `null` or an error (indicating that they did not match).\n\nOptions:\n\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\n\n### get(fileName, [options,] cb) / getSync(filename, [options])\n\nAsynchronously get the \"hash\" of `fileName`.  The callback will be called with an optional `error` object and the (lower cased) hex digest of the hash.\n\nOptions:\n\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\n\n### stream(expected, [options])\n\nCheck the hash of a stream without ever buffering it.  This is a pass through stream so you can do things like:\n\n```js\nfs.createReadStream('src')\n  .pipe(sha.stream('expected'))\n  .pipe(fs.createWriteStream('dest'))\n```\n\n`dest` will be a complete copy of `src` and an error will be emitted if the hash did not match `'expected'`.\n\nOptions:\n\n- algorithm: defaults to `sha1` and can be any of the algorithms supported by `crypto.createHash`\n\n## License\n\nYou may use this software under the BSD or MIT.  Take your pick.  If you want me to release it under another license, open a pull request.",
   54   "readmeFilename": "README.md",
   55   "repository": {
   56     "type": "git",
   57     "url": "git+https://github.com/ForbesLindesay/sha.git"
   58   },
   59   "scripts": {
   60     "test": "mocha -R spec"
   61   },
   62   "version": "2.0.1"
   63 }