├── .flowconfig ├── image ├── example.png ├── jQuery.png ├── nodeJS.png └── user_func.png ├── docs ├── nodejs │ ├── domain.json │ ├── tty.json │ ├── dgram.json │ ├── querystring.json │ ├── punycode.json │ ├── cluster.json │ ├── console.json │ ├── zlib.json │ ├── url.json │ ├── net.json │ ├── timers.json │ ├── readline.json │ ├── repl.json │ ├── os.json │ ├── path.json │ ├── http.json │ ├── dns.json │ ├── vm.json │ ├── https.json │ ├── util.json │ ├── process.json │ ├── crypto.json │ ├── child_process.json │ └── tls.json ├── RegExp.json ├── global.json ├── Math.json ├── reactjs │ └── component.json ├── window.json ├── Statements.json ├── Array.json └── String.json ├── package.json ├── InlineDocsViewer.html ├── Readme.md ├── QuickOpenJS.js ├── WebPlatformDocsJS.less └── InlineDocsViewer.js /.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | 3 | [include] 4 | 5 | [libs] 6 | 7 | [options] 8 | -------------------------------------------------------------------------------- /image/example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wikunia/brackets-QuickDocsJS/HEAD/image/example.png -------------------------------------------------------------------------------- /image/jQuery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wikunia/brackets-QuickDocsJS/HEAD/image/jQuery.png -------------------------------------------------------------------------------- /image/nodeJS.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wikunia/brackets-QuickDocsJS/HEAD/image/nodeJS.png -------------------------------------------------------------------------------- /image/user_func.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Wikunia/brackets-QuickDocsJS/HEAD/image/user_func.png -------------------------------------------------------------------------------- /docs/nodejs/domain.json: -------------------------------------------------------------------------------- 1 | {"create":{"y":"domain.create()","s":"
Returns a new Domain object.\n\n<\/p>\n","p":[]}} 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "quickdocsjs", 3 | "title": "QuickDocsJS", 4 | "author": "Ole Kröger", 5 | "homepage": "https://github.com/Wikunia/brackets-QuickDocsJS", 6 | "version": "1.6.10", 7 | "engines": { "brackets": ">=0.23" }, 8 | "description": "Inline short documentation for JavaScript functions, including a summary,syntax and parameters. Docs for jQuery,NodeJS and some basic ReactJS functions." 9 | } 10 | -------------------------------------------------------------------------------- /docs/nodejs/tty.json: -------------------------------------------------------------------------------- 1 | {"isatty":{"y":"tty.isatty(fd)","s":"
Returns Deprecated. Use Creates a datagram Socket of the specified types. Valid types are Takes an optional callback which is added as a listener for Call Serialize an object to a query string.\nOptionally override the default separator ( Example:\n\n<\/p>\n Deserialize a query string to an object.\nOptionally override the default separator ( Options object may contain Example:\n\n<\/p>\n Converts a Punycode string of ASCII code points to a string of Unicode code\npoints.\n\n<\/p>\n Converts a string of Unicode code points to a Punycode string of ASCII code\npoints.\n\n<\/p>\n Converts a Punycode string representing a domain name to Unicode. Only the\nPunycoded parts of the domain name will be converted, i.e. it doesn't matter if\nyou call it on a string that has already been converted to Unicode.\n\n<\/p>\n Converts a Unicode string representing a domain name to Punycode. Only the\nnon-ASCII parts of the domain name will be converted, i.e. it doesn't matter if\nyou call it with a domain that's already in ASCII.\n\n<\/p>\n Note that:\n\n<\/p>\n Example:\n\n<\/p>\n This can only be called from the master process.\n\n<\/p>\n","p":[{"o":true,"t":"settings","d":"","type":"Object"}]},"fork":{"y":"cluster.fork([env])","s":" Spawn a new worker process.\n\n<\/p>\n This can only be called from the master process.\n\n<\/p>\n","p":[{"o":true,"t":"env","d":"Key\/value pairs to add to worker process environment.","type":"Object"}]},"disconnect":{"y":"cluster.disconnect([callback])","s":" Calls When they are disconnected all internal handles will be closed, allowing the\nmaster process to die gracefully if no other event is waiting.\n\n<\/p>\n The method takes an optional callback argument which will be called when finished.\n\n<\/p>\n This can only be called from the master process.\n\n<\/p>\n","p":[{"o":true,"t":"callback","d":"called when all workers are disconnected and handles are closed","type":"Function"}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/console.json:
--------------------------------------------------------------------------------
1 | {"log":{"y":"console.log([data], [...])","s":" Prints to stdout with newline. This function can take multiple arguments in a\n If formatting elements are not found in the first string then Same as Same as Same as Uses Mark a time.\n\n<\/p>\n","p":[{"o":false,"t":"label","d":"","type":""}]},"timeEnd":{"y":"console.timeEnd(label)","s":" Finish timer, record output. Example:\n\n<\/p>\n Print to stderr Similar to [assert.ok()][], but the error message is formatted as\n Returns a new Gzip<\/a> object with an\noptions<\/a>.\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"createGunzip":{"y":"zlib.createGunzip([options])","s":" Returns a new Gunzip<\/a> object with an\noptions<\/a>.\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"createDeflate":{"y":"zlib.createDeflate([options])","s":" Returns a new Deflate<\/a> object with an\noptions<\/a>.\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"createInflate":{"y":"zlib.createInflate([options])","s":" Returns a new Inflate<\/a> object with an\noptions<\/a>.\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"createDeflateRaw":{"y":"zlib.createDeflateRaw([options])","s":" Returns a new DeflateRaw<\/a> object with an\noptions<\/a>.\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"createInflateRaw":{"y":"zlib.createInflateRaw([options])","s":" Returns a new InflateRaw<\/a> object with an\noptions<\/a>.\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"createUnzip":{"y":"zlib.createUnzip([options])","s":" Returns a new Unzip<\/a> object with an\noptions<\/a>.\n\n\n<\/p>\n","p":[{"o":true,"t":"options","d":"","type":""}]},"deflate":{"y":"zlib.deflate(buf, callback)","s":" Compress a string with Deflate.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]},"deflateRaw":{"y":"zlib.deflateRaw(buf, callback)","s":" Compress a string with DeflateRaw.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]},"gzip":{"y":"zlib.gzip(buf, callback)","s":" Compress a string with Gzip.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]},"gunzip":{"y":"zlib.gunzip(buf, callback)","s":" Decompress a raw Buffer with Gunzip.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]},"inflate":{"y":"zlib.inflate(buf, callback)","s":" Decompress a raw Buffer with Inflate.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]},"inflateRaw":{"y":"zlib.inflateRaw(buf, callback)","s":" Decompress a raw Buffer with InflateRaw.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]},"unzip":{"y":"zlib.unzip(buf, callback)","s":" Decompress a raw Buffer with Unzip.\n\n<\/p>\n","p":[{"o":false,"t":"buf","d":"","type":""},{"o":false,"t":"callback","d":"","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/url.json:
--------------------------------------------------------------------------------
1 | {"parse":{"y":"url.parse(urlStr, [parseQueryString], [slashesDenoteHost])","s":" Take a URL string, and return an object.\n\n<\/p>\n Pass Pass Take a parsed URL object, and return a formatted URL string.\n\n<\/p>\n Take a base URL, and a href URL, and resolve them as a browser would for\nan anchor tag. Examples:\n\n<\/p>\n Creates a new TCP server. The If Here is an example of an echo server which listens for connections\non port 8124:\n\n<\/p>\n Test this by using To listen on the socket Use Creates unix socket connection to A factory method which returns a new 'net.Socket'<\/a>.\n\n<\/p>\n","p":[{"o":false,"t":"path","d":"","type":""},{"o":true,"t":"connectListener","d":"","type":""}]},"createConnection":{"y":"net.createConnection(path, [connectListener])","s":"true<\/code> or false<\/code> depending on if the fd<\/code> is associated with a\nterminal.\n\n\n<\/p>\n","p":[{"o":false,"t":"fd","d":"","type":""}]},"setRawMode":{"y":"tty.setRawMode(mode)","s":"tty.ReadStream#setRawMode()<\/code>\n(i.e. process.stdin.setRawMode()<\/code>) instead.\n\n\n<\/p>\n","p":[{"o":false,"t":"mode","d":"","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/RegExp.json:
--------------------------------------------------------------------------------
1 | {"exec":{"s":"The exec() method executes a search for a match in a specified string. Returns a result array, or null.","y":"regexObj.exec(str)","p":[{"t":"str","d":"The string against which to match the regular expression."}]},"test":{"s":"The test() method executes a search for a match between a regular expression and a specified string. Returns true or false.","y":"regexObj.test(str)","p":[{"t":"str","d":"The string against which to match the regular expression."}]},"toSource":{"s":"The toSource() method returns a string representing the source code of the object.","y":"regexObj.toSource()\nRegExp.toSource()\n","p":null},"toString":{"s":"The toString() method returns a string representing the regular expression.","y":"regexObj.toString()","p":null}}
--------------------------------------------------------------------------------
/docs/nodejs/dgram.json:
--------------------------------------------------------------------------------
1 | {"createSocket":{"y":"dgram.createSocket(type, [callback])","s":"udp4<\/code>\nand udp6<\/code>.\n\n<\/p>\nmessage<\/code> events.\n\n<\/p>\nsocket.bind<\/code> if you want to receive datagrams. socket.bind()<\/code> will bind\nto the "all interfaces" address on a random port (it does the right thing for\nboth udp4<\/code> and udp6<\/code> sockets). You can then retrieve the address and port\nwith socket.address().address<\/code> and socket.address().port<\/code>.\n\n<\/p>\n","p":[{"o":false,"t":"type","d":"String. Either 'udp4' or 'udp6'","type":""},{"o":true,"t":"callback","d":"Function. Attached as a listener to `message` events.","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/querystring.json:
--------------------------------------------------------------------------------
1 | {"stringify":{"y":"querystring.stringify(obj, [sep], [eq])","s":"'&'<\/code>) and assignment ('='<\/code>)\ncharacters.\n\n<\/p>\nquerystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' })\n\/\/ returns\n'foo=bar&baz=qux&baz=quux&corge='\n\nquerystring.stringify({foo: 'bar', baz: 'qux'}, ';', ':')\n\/\/ returns\n'foo:bar;baz:qux'<\/code><\/pre>\n","p":[{"o":false,"t":"obj","d":"","type":""},{"o":true,"t":"sep","d":"","type":""},{"o":true,"t":"eq","d":"","type":""}]},"parse":{"y":"querystring.parse(str, [sep], [eq], [options])","s":"'&'<\/code>) and assignment ('='<\/code>)\ncharacters.\n\n<\/p>\nmaxKeys<\/code> property (equal to 1000 by default), it'll\nbe used to limit processed keys. Set it to 0 to remove key count limitation.\n\n<\/p>\nquerystring.parse('foo=bar&baz=qux&baz=quux&corge')\n\/\/ returns\n{ foo: 'bar', baz: ['qux', 'quux'], corge: '' }<\/code><\/pre>\n","p":[{"o":false,"t":"str","d":"","type":""},{"o":true,"t":"sep","d":"","type":""},{"o":true,"t":"eq","d":"","type":""},{"o":true,"t":"options","d":"","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/punycode.json:
--------------------------------------------------------------------------------
1 | {"decode":{"y":"punycode.decode(string)","s":"\/\/ decode domain name parts\npunycode.decode('maana-pta'); \/\/ 'ma\u00f1ana'\npunycode.decode('--dqo34k'); \/\/ '\u2603-\u2318'<\/code><\/pre>\n","p":[{"o":false,"t":"string","d":"","type":""}]},"encode":{"y":"punycode.encode(string)","s":"\/\/ encode domain name parts\npunycode.encode('ma\u00f1ana'); \/\/ 'maana-pta'\npunycode.encode('\u2603-\u2318'); \/\/ '--dqo34k'<\/code><\/pre>\n","p":[{"o":false,"t":"string","d":"","type":""}]},"toUnicode":{"y":"punycode.toUnicode(domain)","s":"\/\/ decode domain names\npunycode.toUnicode('xn--maana-pta.com'); \/\/ 'ma\u00f1ana.com'\npunycode.toUnicode('xn----dqo34k.com'); \/\/ '\u2603-\u2318.com'<\/code><\/pre>\n","p":[{"o":false,"t":"domain","d":"","type":""}]},"toASCII":{"y":"punycode.toASCII(domain)","s":"\/\/ encode domain names\npunycode.toASCII('ma\u00f1ana.com'); \/\/ 'xn--maana-pta.com'\npunycode.toASCII('\u2603-\u2318.com'); \/\/ 'xn----dqo34k.com'<\/code><\/pre>\n","p":[{"o":false,"t":"domain","d":"","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/cluster.json:
--------------------------------------------------------------------------------
1 | {"setupMaster":{"y":"cluster.setupMaster([settings])","s":"setupMaster<\/code> is used to change the default 'fork' behavior. Once called,\nthe settings will be present in cluster.settings<\/code>.\n\n<\/p>\n\n
.setupMaster()<\/code> has any effect, subsequent calls are\nignored<\/li>\nenv<\/code> passed to .fork()<\/code><\/li>\n.fork()<\/code> calls .setupMaster()<\/code> internally to establish the defaults, so to\nhave any effect, .setupMaster()<\/code> must be called before<\/em> any calls to\n.fork()<\/code><\/li>\n<\/ul>\nvar cluster = require("cluster");\ncluster.setupMaster({\n exec : "worker.js",\n args : ["--use", "https"],\n silent : true\n});\ncluster.fork();<\/code><\/pre>\n.disconnect()<\/code> on each worker in cluster.workers<\/code>.\n\n<\/p>\nprintf()<\/code>-like way. Example:\n\n<\/p>\nconsole.log('count: %d', count);<\/code><\/pre>\nutil.inspect<\/code>\nis used on each argument. See [util.format()][] for more information.\n\n<\/p>\n","p":[{"o":true,"t":"data","d":"","type":""},{"o":true,"t":"...","d":"","type":""}]},"info":{"y":"console.info([data], [...])","s":"console.log<\/code>.\n\n<\/p>\n","p":[{"o":true,"t":"data","d":"","type":""},{"o":true,"t":"...","d":"","type":""}]},"error":{"y":"console.error([data], [...])","s":"console.log<\/code> but prints to stderr.\n\n<\/p>\n","p":[{"o":true,"t":"data","d":"","type":""},{"o":true,"t":"...","d":"","type":""}]},"warn":{"y":"console.warn([data], [...])","s":"console.error<\/code>.\n\n<\/p>\n","p":[{"o":true,"t":"data","d":"","type":""},{"o":true,"t":"...","d":"","type":""}]},"dir":{"y":"console.dir(obj)","s":"util.inspect<\/code> on obj<\/code> and prints resulting string to stdout.\n\n<\/p>\n","p":[{"o":false,"t":"obj","d":"","type":""}]},"time":{"y":"console.time(label)","s":"console.time('100-elements');\nfor (var i = 0; i < 100; i++) {\n ;\n}\nconsole.timeEnd('100-elements');<\/code><\/pre>\n","p":[{"o":false,"t":"label","d":"","type":""}]},"trace":{"y":"console.trace(message, [...])","s":"'Trace :'<\/code>, followed by the formatted message and stack trace\nto the current position.\n\n<\/p>\n","p":[{"o":false,"t":"message","d":"","type":""},{"o":true,"t":"...","d":"","type":""}]},"assert":{"y":"console.assert(value, [message], [...])","s":"util.format(message...)<\/code>.\n\n<\/p>\n","p":[{"o":false,"t":"value","d":"","type":""},{"o":true,"t":"message","d":"","type":""},{"o":true,"t":"...","d":"","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/zlib.json:
--------------------------------------------------------------------------------
1 | {"createGzip":{"y":"zlib.createGzip([options])","s":"true<\/code> as the second argument to also parse\nthe query string using the querystring<\/code> module.\nDefaults to false<\/code>.\n\n<\/p>\ntrue<\/code> as the third argument to treat \/\/foo\/bar<\/code> as\n{ host: 'foo', pathname: '\/bar' }<\/code> rather than\n{ pathname: '\/\/foo\/bar' }<\/code>. Defaults to false<\/code>.\n\n<\/p>\n","p":[{"o":false,"t":"urlStr","d":"","type":""},{"o":true,"t":"parseQueryString","d":"","type":""},{"o":true,"t":"slashesDenoteHost","d":"","type":""}]},"format":{"y":"url.format(urlObj)","s":"\n
href<\/code> will be ignored.<\/li>\nprotocol<\/code> is treated the same with or without the trailing :<\/code> (colon).\n
http<\/code>, https<\/code>, ftp<\/code>, gopher<\/code>, file<\/code> will be\npostfixed with :\/\/<\/code> (colon-slash-slash).<\/li>\nmailto<\/code>, xmpp<\/code>, aim<\/code>, sftp<\/code>, foo<\/code>, etc will\nbe postfixed with :<\/code> (colon)<\/li>\n<\/ul>\n<\/li>\nslashes<\/code> set to true<\/code> if the protocol requires :\/\/<\/code> (colon-slash-slash)\n
mongodb:\/\/localhost:8000\/<\/code><\/li>\n<\/ul>\n<\/li>\nauth<\/code> will be used if present.<\/li>\nhostname<\/code> will only be used if host<\/code> is absent.<\/li>\nport<\/code> will only be used if host<\/code> is absent.<\/li>\nhost<\/code> will be used in place of hostname<\/code> and port<\/code><\/li>\npathname<\/code> is treated the same with or without the leading \/<\/code> (slash)<\/li>\nsearch<\/code> will be used in place of query<\/code><\/li>\nquery<\/code> (object; see querystring<\/code>) will only be used if search<\/code> is absent.<\/li>\nsearch<\/code> is treated the same with or without the leading ?<\/code> (question mark)<\/li>\nhash<\/code> is treated the same with or without the leading #<\/code> (pound sign, anchor)<\/li>\n<\/ul>\n","p":[{"o":false,"t":"urlObj","d":"","type":""}]},"resolve":{"y":"url.resolve(from, to)","s":"url.resolve('\/one\/two\/three', 'four') \/\/ '\/one\/two\/four'\nurl.resolve('http:\/\/example.com\/', '\/one') \/\/ 'http:\/\/example.com\/one'\nurl.resolve('http:\/\/example.com\/one', '\/two') \/\/ 'http:\/\/example.com\/two'<\/code><\/pre>\n","p":[{"o":false,"t":"from","d":"","type":""},{"o":false,"t":"to","d":"","type":""}]}}
2 |
--------------------------------------------------------------------------------
/docs/nodejs/net.json:
--------------------------------------------------------------------------------
1 | {"createServer":{"y":"net.createServer([options], [connectionListener])","s":"connectionListener<\/code> argument is\nautomatically set as a listener for the ['connection'][] event.\n\n<\/p>\noptions<\/code> is an object with the following defaults:\n\n<\/p>\n{ allowHalfOpen: false\n}<\/code><\/pre>\nallowHalfOpen<\/code> is true<\/code>, then the socket won't automatically send a FIN\npacket when the other end of the socket sends a FIN packet. The socket becomes\nnon-readable, but still writable. You should call the end()<\/code> method explicitly.\nSee ['end'][] event for more information.\n\n<\/p>\nvar net = require('net');\nvar server = net.createServer(function(c) { \/\/'connection' listener\n console.log('server connected');\n c.on('end', function() {\n console.log('server disconnected');\n });\n c.write('hello\\r\\n');\n c.pipe(c);\n});\nserver.listen(8124, function() { \/\/'listening' listener\n console.log('server bound');\n});<\/code><\/pre>\ntelnet<\/code>:\n\n<\/p>\ntelnet localhost 8124<\/code><\/pre>\n\/tmp\/echo.sock<\/code> the third line from the last would\njust be changed to\n\n<\/p>\nserver.listen('\/tmp\/echo.sock', function() { \/\/'listening' listener<\/code><\/pre>\nnc<\/code> to connect to a UNIX domain socket server:\n\n<\/p>\nnc -U \/tmp\/echo.sock<\/code><\/pre>\n","p":[{"o":true,"t":"options","d":"","type":""},{"o":true,"t":"connectionListener","d":"","type":""}]},"connect":{"y":"net.connect(path, [connectListener])","s":"path<\/code>.\nThe connectListener<\/code> parameter will be added as an listener for the\n['connect'][] event.\n\n<\/p>\n