"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/defaults/package.json" (11 Apr 2017, 2363 Bytes) of package /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": "defaults@>=1.0.0 <2.0.0",
    3   "_id": "defaults@1.0.3",
    4   "_location": "/defaults",
    5   "_nodeVersion": "4.1.1",
    6   "_npmUser": {
    7     "name": "tmpvar",
    8     "email": "tmpvar@gmail.com"
    9   },
   10   "_npmVersion": "2.14.4",
   11   "_phantomChildren": {},
   12   "_requiredBy": [
   13     "/wcwidth"
   14   ],
   15   "_resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz",
   16   "_shasum": "c656051e9817d9ff08ed881477f3fe4019f3ef7d",
   17   "_shrinkwrap": null,
   18   "author": {
   19     "name": "Elijah Insua",
   20     "email": "tmpvar@gmail.com"
   21   },
   22   "bugs": {
   23     "url": "https://github.com/tmpvar/defaults/issues"
   24   },
   25   "dependencies": {
   26     "clone": "^1.0.2"
   27   },
   28   "description": "merge single level defaults over a config object",
   29   "devDependencies": {
   30     "tap": "^2.0.0"
   31   },
   32   "directories": {},
   33   "dist": {
   34     "shasum": "c656051e9817d9ff08ed881477f3fe4019f3ef7d",
   35     "tarball": "http://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz"
   36   },
   37   "gitHead": "8831ec32a5f999bfae1a8c9bf32880971ed7c6f2",
   38   "homepage": "https://github.com/tmpvar/defaults#readme",
   39   "keywords": [
   40     "config",
   41     "defaults"
   42   ],
   43   "license": "MIT",
   44   "main": "index.js",
   45   "maintainers": [
   46     {
   47       "name": "tmpvar",
   48       "email": "tmpvar@gmail.com"
   49     }
   50   ],
   51   "name": "defaults",
   52   "optionalDependencies": {},
   53   "readme": "# defaults\n\nA simple one level options merge utility\n\n## install\n\n`npm install defaults`\n\n## use\n\n```javascript\n\nvar defaults = require('defaults');\n\nvar handle = function(options, fn) {\n  options = defaults(options, {\n    timeout: 100\n  });\n\n  setTimeout(function() {\n    fn(options);\n  }, options.timeout);\n}\n\nhandle({ timeout: 1000 }, function() {\n  // we're here 1000 ms later\n});\n\nhandle({ timeout: 10000 }, function() {\n  // we're here 10s later\n});\n\n```\n\n## summary\n\nthis module exports a function that takes 2 arguments: `options` and `defaults`.  When called, it overrides all of `undefined` properties in `options` with the clones of properties defined in `defaults`\n\nSidecases: if called with a falsy `options` value, options will be initialized to a new object before being merged onto.\n\n## license\n\n[MIT](LICENSE)\n",
   54   "readmeFilename": "README.md",
   55   "repository": {
   56     "type": "git",
   57     "url": "git://github.com/tmpvar/defaults.git"
   58   },
   59   "scripts": {
   60     "test": "node test.js"
   61   },
   62   "version": "1.0.3"
   63 }