"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/clone/package.json" (7 Feb 2017, 6501 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": "clone@>=1.0.2 <2.0.0",
    3   "_id": "clone@1.0.2",
    4   "_location": "/clone",
    5   "_phantomChildren": {},
    6   "_requiredBy": [
    7     "/defaults"
    8   ],
    9   "_resolved": "https://registry.npmjs.org/clone/-/clone-1.0.2.tgz",
   10   "_shasum": "260b7a99ebb1edfe247538175f783243cb19d149",
   11   "_shrinkwrap": null,
   12   "author": {
   13     "name": "Paul Vorbach",
   14     "email": "paul@vorba.ch",
   15     "url": "http://paul.vorba.ch/"
   16   },
   17   "bugs": {
   18     "url": "https://github.com/pvorb/node-clone/issues"
   19   },
   20   "contributors": [
   21     {
   22       "name": "Blake Miner",
   23       "email": "miner.blake@gmail.com",
   24       "url": "http://www.blakeminer.com/"
   25     },
   26     {
   27       "name": "Tian You",
   28       "email": "axqd001@gmail.com",
   29       "url": "http://blog.axqd.net/"
   30     },
   31     {
   32       "name": "George Stagas",
   33       "email": "gstagas@gmail.com",
   34       "url": "http://stagas.com/"
   35     },
   36     {
   37       "name": "Tobiasz Cudnik",
   38       "email": "tobiasz.cudnik@gmail.com",
   39       "url": "https://github.com/TobiaszCudnik"
   40     },
   41     {
   42       "name": "Pavel Lang",
   43       "email": "langpavel@phpskelet.org",
   44       "url": "https://github.com/langpavel"
   45     },
   46     {
   47       "name": "Dan MacTough",
   48       "url": "http://yabfog.com/"
   49     },
   50     {
   51       "name": "w1nk",
   52       "url": "https://github.com/w1nk"
   53     },
   54     {
   55       "name": "Hugh Kennedy",
   56       "url": "http://twitter.com/hughskennedy"
   57     },
   58     {
   59       "name": "Dustin Diaz",
   60       "url": "http://dustindiaz.com"
   61     },
   62     {
   63       "name": "Ilya Shaisultanov",
   64       "url": "https://github.com/diversario"
   65     },
   66     {
   67       "name": "Nathan MacInnes",
   68       "email": "nathan@macinn.es",
   69       "url": "http://macinn.es/"
   70     },
   71     {
   72       "name": "Benjamin E. Coe",
   73       "email": "ben@npmjs.com",
   74       "url": "https://twitter.com/benjamincoe"
   75     },
   76     {
   77       "name": "Nathan Zadoks",
   78       "url": "https://github.com/nathan7"
   79     },
   80     {
   81       "name": "Róbert Oroszi",
   82       "email": "robert+gh@oroszi.net",
   83       "url": "https://github.com/oroce"
   84     },
   85     {
   86       "name": "Aurélio A. Heckert",
   87       "url": "http://softwarelivre.org/aurium"
   88     },
   89     {
   90       "name": "Guy Ellis",
   91       "url": "http://www.guyellisrocks.com/"
   92     }
   93   ],
   94   "dependencies": {},
   95   "description": "deep cloning of objects and arrays",
   96   "devDependencies": {
   97     "nodeunit": "~0.9.0"
   98   },
   99   "engines": {
  100     "node": ">=0.8"
  101   },
  102   "homepage": "https://github.com/pvorb/node-clone#readme",
  103   "license": "MIT",
  104   "main": "clone.js",
  105   "name": "clone",
  106   "optionalDependencies": {},
  107   "readme": "# clone\n\n[![build status](https://secure.travis-ci.org/pvorb/node-clone.png)](http://travis-ci.org/pvorb/node-clone)\n\n[![info badge](https://nodei.co/npm/clone.png?downloads=true&downloadRank=true&stars=true)](http://npm-stat.com/charts.html?package=clone)\n\noffers foolproof _deep cloning_ of objects, arrays, numbers, strings etc. in JavaScript.\n\n\n## Installation\n\n    npm install clone\n\n(It also works with browserify, ender or standalone.)\n\n\n## Example\n\n~~~ javascript\nvar clone = require('clone');\n\nvar a, b;\n\na = { foo: { bar: 'baz' } };  // initial value of a\n\nb = clone(a);                 // clone a -> b\na.foo.bar = 'foo';            // change a\n\nconsole.log(a);               // show a\nconsole.log(b);               // show b\n~~~\n\nThis will print:\n\n~~~ javascript\n{ foo: { bar: 'foo' } }\n{ foo: { bar: 'baz' } }\n~~~\n\n**clone** masters cloning simple objects (even with custom prototype), arrays,\nDate objects, and RegExp objects. Everything is cloned recursively, so that you\ncan clone dates in arrays in objects, for example.\n\n\n## API\n\n`clone(val, circular, depth)`\n\n  * `val` -- the value that you want to clone, any type allowed\n  * `circular` -- boolean\n\n    Call `clone` with `circular` set to `false` if you are certain that `obj`\n    contains no circular references. This will give better performance if needed.\n    There is no error if `undefined` or `null` is passed as `obj`.\n  * `depth` -- depth to which the object is to be cloned (optional,\n    defaults to infinity)\n\n`clone.clonePrototype(obj)`\n\n  * `obj` -- the object that you want to clone\n\nDoes a prototype clone as\n[described by Oran Looney](http://oranlooney.com/functional-javascript/).\n\n\n## Circular References\n\n~~~ javascript\nvar a, b;\n\na = { hello: 'world' };\n\na.myself = a;\nb = clone(a);\n\nconsole.log(b);\n~~~\n\nThis will print:\n\n~~~ javascript\n{ hello: \"world\", myself: [Circular] }\n~~~\n\nSo, `b.myself` points to `b`, not `a`. Neat!\n\n\n## Test\n\n    npm test\n\n\n## Caveat\n\nSome special objects like a socket or `process.stdout`/`stderr` are known to not\nbe cloneable. If you find other objects that cannot be cloned, please [open an\nissue](https://github.com/pvorb/node-clone/issues/new).\n\n\n## Bugs and Issues\n\nIf you encounter any bugs or issues, feel free to [open an issue at\ngithub](https://github.com/pvorb/node-clone/issues) or send me an email to\n<paul@vorba.ch>. I also always like to hear from you, if you’re using my code.\n\n## License\n\nCopyright © 2011-2015 [Paul Vorbach](http://paul.vorba.ch/) and\n[contributors](https://github.com/pvorb/node-clone/graphs/contributors).\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the “Software”), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies 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, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n",
  108   "readmeFilename": "README.md",
  109   "repository": {
  110     "type": "git",
  111     "url": "git://github.com/pvorb/node-clone.git"
  112   },
  113   "scripts": {
  114     "test": "nodeunit test.js"
  115   },
  116   "tags": [
  117     "clone",
  118     "object",
  119     "array",
  120     "function",
  121     "date"
  122   ],
  123   "version": "1.0.2"
  124 }