-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
70 lines (70 loc) · 4.18 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"_args": [
[
{
"raw": "natives@https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"scope": null,
"escapedName": "natives",
"name": "natives",
"rawSpec": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"spec": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"type": "remote"
},
"/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin"
]
],
"_from": "natives@https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"_id": "natives@1.1.0",
"_inCache": true,
"_location": "/firebase-admin/natives",
"_phantomChildren": {},
"_requested": {
"raw": "natives@https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"scope": null,
"escapedName": "natives",
"name": "natives",
"rawSpec": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"spec": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/firebase-admin",
"/firebase-admin/vinyl-fs/graceful-fs"
],
"_resolved": "https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"_shasum": "e9ff841418a6b2ec7a495e939984f78f163e6e31",
"_shrinkwrap": null,
"_spec": "natives@https://registry.npmjs.org/natives/-/natives-1.1.0.tgz",
"_where": "/Users/jennyphan/AngularToolingSamples/Angular4/aboutMe-app/functions/node_modules/firebase-admin",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/natives/issues"
},
"dependencies": {},
"description": "Do stuff with Node.js's native JavaScript modules",
"devDependencies": {
"tap": "^7.0.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/isaacs/natives#readme",
"license": "ISC",
"main": "index.js",
"name": "natives",
"optionalDependencies": {},
"readme": "# natives\n\nDo stuff with Node.js's native JavaScript modules\n\n## Caveat\n\nDear Beloved User,\n\nI feel compelled to give you a word of warning if you are considering\nusing this module.\n\nThis module lets you do some creative things with the JavaScript code\nin Node.js. There are some things here that are basically a recipe\nfor memory leaks, or at the very least, being broken with each new\nrelease of Node, since none of these API surfaces are \"technically\"\n\"supported\" by the team managing the Node.js project.\n\nThis module does not ship a _copy_ of Node's internals. It does its\nthing by using the exposed source code that lives in Node.js itself.\nSo, running this on different versions of Node.js will produce\ndifferent results.\n\nWhen your program is broken by changes to Node's internals, or when\nNode changes in such a way that this module becomes fundamentally\nbroken, you will likely get little sympathy. Many people in the Node\ncommunity consider this sort of behavior to be unwise and unseemly, if\nnot outright hostile and morally wrong.\n\nAt the very least, you probably just want to run Node with the\n(undocumented!) `--expose-internals` flag, rather than go to such\nlengths.\n\nDon't use unless you know what you're doing, or at least, are ok with\nthe risks. Don't say I didn't warn you.\n\nEternally Yours in OSS, \nIsaac Z. Schlueter\n\n## USAGE\n\n```javascript\nvar natives = require('natives')\n\n// get the source code\nvar fsCode = natives.source('fs')\n\n// get a evaluated copy of the module\nvar fsCopy = natives.require('fs')\n\n// you can pass in a whitelist to NOT shim certain things\nvar fsCopyWithNativeStreams = natives.require('fs', ['stream'])\n\n// note that this is not the same as the \"real\" fs\nassert(fsCopy !== require('fs'))\n\n// but it does have all the same entries\nfsCopy.readFileSync(__filename, 'utf8') // etc\n```\n\n## Another Caveat\n\nYou can't use this to override `require(\"buffer\")` because everything\ndepends on `Buffer.isBuffer` working properly, so it's important for\nthat one to be given a pass.\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/isaacs/natives.git"
},
"scripts": {
"test": "tap test/*.js --100"
},
"version": "1.1.0"
}