Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/target.json

raw
1 {
2 "_id": "target",
3 "_rev": "12-7a46296b6ce2bf7276b840b964ad1f73",
4 "name": "target",
5 "time": {
6 "modified": "2017-07-23T02:29:12.722Z",
7 "created": "2014-07-10T17:11:24.430Z",
8 "0.0.0": "2014-07-10T17:11:24.430Z",
9 "0.0.1": "2014-09-15T17:45:51.027Z",
10 "0.0.2": "2014-09-21T20:52:20.870Z"
11 },
12 "maintainers": [
13 {
14 "email": "[email protected]",
15 "name": "unshift"
16 },
17 {
18 "email": "[email protected]",
19 "name": "v1"
20 },
21 {
22 "email": "[email protected]",
23 "name": "3rdeden"
24 }
25 ],
26 "dist-tags": {
27 "latest": "0.0.2"
28 },
29 "description": "Use iFrame targets to POST data to servers without page reloads",
30 "readme": "# Target\n\nPOST/GET/`<HTTP METHOD>` a resource through an iframe. So, why would need an\niframe? There are cases where you cannot use cross domain XHR because of the\nbrowser support that is missing etc. or maybe you just want to upload a file\nwithout triggering a full-page refresh. This module makes that all possible.\n\n## Installation\n\nThe module is released through npm and tries to follow semver as closely as\npossible. You can install the latest version of this module using:\n\n```\nnpm install --save target\n```\n\n## Usage\n\nIn all examples we assume that the following code has been loaded.\n\n```js\nvar target = require('target');\n```\n\nThe `target` variable now contains a function. The returned function can be\ncalled with 3 arguments, the _options_ argument is optional and can be omitted:\n\n```js\ntarget('http://your-target-url.here/please', function send(err) {\n // Error first completion callback.\n});\n```\n\nAs you can see in the example above, the first argument is the URL that should\nreceive the send data. And the last argument should **always** be a callback. It\nfollows an error first callback pattern as you might be used to in node.js. The\nsecond argument is an optional object, this object allows you to fully configure\nthe module:\n\n- `body`: String of data that should be posted to the server.\n- `dom`: Document element we append to and create elements from.\n- `param`: The name of the param where we send the data with.\n- `method`: The HTTP method of the request.\n- `class`: CSS class name which will be applied to the created form element.\n- `uuid`: Unique id, will be used as submit target and id of the created iframe.\n\nSo to `POST` data to the server:\n\n```js\ntarget('http://localhost:8080/incoming', {\n method: 'POST',\n body: 'Hello mom'\n}, function send(err) {\n console.log(arguments);\n});\n```\n\n## License\n\nMIT\n",
31 "versions": {
32 "0.0.1": {
33 "name": "target",
34 "version": "0.0.1",
35 "description": "Use iFrame targets to POST data to servers without page reloads",
36 "main": "index.js",
37 "keywords": [
38 "iframe",
39 "post",
40 "jsonp",
41 "target"
42 ],
43 "author": {
44 "name": "Arnout Kazemier"
45 },
46 "license": "MIT",
47 "dependencies": {
48 "frames": "0.0.0"
49 },
50 "_id": "[email protected]",
51 "scripts": {},
52 "_shasum": "0d18598f726882f6b35eafe7631deaa291b7bdff",
53 "_from": ".",
54 "_npmVersion": "1.4.27",
55 "_npmUser": {
56 "name": "V1",
57 "email": "[email protected]"
58 },
59 "maintainers": [
60 {
61 "name": "V1",
62 "email": "[email protected]"
63 }
64 ],
65 "dist": {
66 "shasum": "0d18598f726882f6b35eafe7631deaa291b7bdff",
67 "tarball": "https://registry.npmjs.org/target/-/target-0.0.1.tgz"
68 },
69 "directories": {}
70 },
71 "0.0.2": {
72 "name": "target",
73 "version": "0.0.2",
74 "description": "Use iFrame targets to POST data to servers without page reloads",
75 "main": "index.js",
76 "keywords": [
77 "iframe",
78 "post",
79 "jsonp",
80 "target"
81 ],
82 "author": {
83 "name": "Arnout Kazemier"
84 },
85 "license": "MIT",
86 "dependencies": {
87 "frames": "0.0.x"
88 },
89 "_id": "[email protected]",
90 "scripts": {},
91 "_shasum": "f56520eb1d71422c522f5bde0b3f74cfd5a7e5f8",
92 "_from": ".",
93 "_npmVersion": "1.4.27",
94 "_npmUser": {
95 "name": "V1",
96 "email": "[email protected]"
97 },
98 "maintainers": [
99 {
100 "name": "V1",
101 "email": "[email protected]"
102 }
103 ],
104 "dist": {
105 "shasum": "f56520eb1d71422c522f5bde0b3f74cfd5a7e5f8",
106 "tarball": "https://registry.npmjs.org/target/-/target-0.0.2.tgz"
107 },
108 "directories": {}
109 }
110 },
111 "keywords": [
112 "iframe",
113 "post",
114 "jsonp",
115 "target"
116 ],
117 "author": {
118 "name": "Arnout Kazemier"
119 },
120 "license": "MIT",
121 "readmeFilename": "README.md",
122 "_attachments": {}
123 }