text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```javascript // ## Token types // The assignment of fine-grained, information-carrying type objects // allows the tokenizer to store the information it has about a // token in a way that is very cheap for the parser to look up. // All token type variables start with an underscore, to make them // easy to recognize. ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/tokentype.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,365
```javascript // The algorithm used to determine whether a regexp can appear at a // given point in the program is loosely based on sweet.js' approach. // See path_to_url import {Parser} from "./state" import {types as tt} from "./tokentype" import {lineBreak} from "./whitespace" export class TokContext { construct...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/tokencontext.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
815
```javascript import {types as tt} from "./tokentype" import {Parser} from "./state" import {has} from "./util" const pp = Parser.prototype // Convert existing expression atom to assignable pattern // if possible. pp.toAssignable = function(node, isBinding) { if (this.options.ecmaVersion >= 6 && node) { switch...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/lval.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,553
```javascript import {Parser} from "./state" import {Position, getLineInfo} from "./locutil" const pp = Parser.prototype // This function is used to raise exceptions on parse errors. It // takes an offset integer (into the current `input`) to indicate // the location of the error, attaches the position to the end // ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/location.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
193
```javascript import {Parser} from "./state" import {SourceLocation} from "./locutil" export class Node { constructor(parser, pos, loc) { this.type = "" this.start = pos this.end = 0 if (parser.options.locations) this.loc = new SourceLocation(parser, loc) if (parser.options.directSourceFile...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/node.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
319
```javascript import {types as tt} from "./tokentype" import {Parser} from "./state" import {lineBreak} from "./whitespace" const pp = Parser.prototype // ### Statement parsing // Parse a program. Initializes the parser, reads any number of // statements, and wraps them in a Program node. Optionally takes a // `pro...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/statement.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
5,438
```javascript export function isArray(obj) { return Object.prototype.toString.call(obj) === "[object Array]" } // Checks if an object has a property. export function has(obj, propName) { return Object.prototype.hasOwnProperty.call(obj, propName) } ```
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/util.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
49
```javascript import {types as tt} from "./tokentype" import {Parser} from "./state" import {lineBreak} from "./whitespace" const pp = Parser.prototype // ## Parser utilities // Test whether a statement node is the string literal `"use strict"`. pp.isUseStrict = function(stmt) { return this.options.ecmaVersion >=...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/parseutil.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
723
```javascript // A recursive descent parser operates by defining functions for all // syntactic elements, and recursively calling those, each function // advancing the input stream and returning an AST node. Precedence // of constructs (for example, the fact that `!x[1]` means `!(x[1])` // instead of `(!x)[1]` is handl...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/expression.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
6,355
```javascript import {reservedWords, keywords} from "./identifier" import {types as tt} from "./tokentype" import {lineBreak} from "./whitespace" import {getOptions} from "./options" // Registered plugins export const plugins = {} function keywordRegexp(words) { return new RegExp("^(" + words.replace(/ /g, "|") + "...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/state.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
869
```javascript // Matches a whole line break (where CRLF is considered a single // line break). Used to count lines. export const lineBreak = /\r\n?|\n|\u2028|\u2029/ export const lineBreakG = new RegExp(lineBreak.source, "g") export function isNewLine(code) { return code === 10 || code === 13 || code === 0x2028 || ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/whitespace.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
132
```javascript // This is a trick taken from Esprima. It turns out that, on // non-Chrome browsers, to check whether a string is in a set, a // predicate containing a big ugly `switch` statement is faster than // a regular expression, and on Chrome the two are about on par. // This function uses `eval` (non-lexical) to ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/identifier.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
6,089
```javascript import {has, isArray} from "./util" import {SourceLocation} from "./locutil" // A second optional argument can be given to further configure // the parser process. These options are recognized: export const defaultOptions = { // `ecmaVersion` indicates the ECMAScript version to parse. Must // be eit...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/options.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,262
```javascript import {isIdentifierStart, isIdentifierChar} from "./identifier" import {types as tt, keywords as keywordTypes} from "./tokentype" import {Parser} from "./state" import {SourceLocation} from "./locutil" import {lineBreak, lineBreakG, isNewLine, nonASCIIwhitespace} from "./whitespace" // Object type used ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/tokenize.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
6,303
```javascript import {lineBreakG} from "./whitespace" // These are used when `options.locations` is on, for the // `startLoc` and `endLoc` properties. export class Position { constructor(line, col) { this.line = line this.column = col } offset(n) { return new Position(this.line, this.column + n) ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/locutil.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
281
```javascript ```
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/acorn_loose.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1
```javascript // Acorn: Loose parser // // This module provides an alternative parser (`parse_dammit`) that // exposes that same interface as `parse`, but will try to parse // anything as JavaScript, repairing syntax error the best it can. // There are circumstances in which it will raise an error and give // up, but t...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
423
```javascript import {LooseParser} from "./state" import {isDummy} from "./parseutil" import {getLineInfo, tokTypes as tt} from ".." const lp = LooseParser.prototype lp.parseTopLevel = function() { let node = this.startNodeAt(this.options.locations ? [0, getLineInfo(this.input, 0)] : 0) node.body = [] while (th...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/statement.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,667
```javascript export function isDummy(node) { return node.name == "" } ```
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/parseutil.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
14
```javascript import {tokenizer, SourceLocation, tokTypes as tt, Node, lineBreak, isNewLine} from ".." // Registered plugins export const pluginsLoose = {} export class LooseParser { constructor(input, options) { this.toks = tokenizer(input, options) this.options = this.toks.options this.input = this.to...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/state.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,123
```javascript import {LooseParser} from "./state" import {isDummy} from "./parseutil" import {tokTypes as tt} from ".." const lp = LooseParser.prototype lp.checkLVal = function(expr) { if (!expr) return expr switch (expr.type) { case "Identifier": case "MemberExpression": return expr case "Parenthesize...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/expression.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
4,159
```javascript import {tokTypes as tt, Token, isNewLine, SourceLocation, getLineInfo, lineBreakG} from ".." import {LooseParser} from "./state" const lp = LooseParser.prototype function isSpace(ch) { return (ch < 14 && ch > 8) || ch === 32 || ch === 160 || isNewLine(ch) } lp.next = function() { this.last = this.t...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/loose/tokenize.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
992
```javascript #!/usr/bin/env node import {basename} from "path" import {readFileSync as readFile} from "fs" import * as acorn from "../dist/acorn.js" let infile, forceFile, silent = false, compact = false, tokenize = false const options = {} function help(status) { const print = (status == 0) ? console.log : conso...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/bin/acorn.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
600
```javascript // Note: run `npm install unicode-7.0.0` first. // Which Unicode version should be used? var version = '7.0.0'; var start = require('unicode-' + version + '/properties/ID_Start/code-points') .filter(function(ch) { return ch > 127; }); var cont = [0x200c, 0x200d].concat(require('unicode-' + version +...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/bin/generate-identifier-regex.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
472
```shell # Combine existing list of authors with everyone known in git, sort, add header. tail --lines=+3 AUTHORS > AUTHORS.tmp git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS sort -u AUTHORS.tmp >> AUTHORS rm -f AUTHORS.tmp ```
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/bin/update_authors.sh
shell
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
81
```unknown #!/usr/bin/env node "use strict"; function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } ...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/bin/acorn
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
724
```javascript var fs = require("fs"), path = require("path") var stream = require("stream") var browserify = require("browserify") var babel = require('babel-core') var babelify = require("babelify").configure({loose: "all"}) process.chdir(path.resolve(__dirname, "..")) browserify({standalone: "acorn"}) .plugin(re...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/bin/build-acorn.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
713
```unknown ```
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/dist/.keep
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1
```javascript // AST walker module for Mozilla Parser API compatible trees // A simple walk is one where you simply specify callbacks to be // called on specific nodes. The last two arguments are optional. A // simple use would be // // walk.simple(myTree, { // Expression: function(node) { ... } // });...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/src/walk/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,237
```javascript (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/dist/walk.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,656
```javascript (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g...
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/dist/acorn_loose.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
11,603
```javascript /* jshint node: true */ (function () { "use strict"; function CookieAccessInfo(domain, path, secure, script) { if (this instanceof CookieAccessInfo) { this.domain = domain || undefined; this.path = path || "/"; this.secure = !!secure; this.s...
/content/code_sandbox/node_modules/cookiejar/cookiejar.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,895
```unknown test ```
/content/code_sandbox/node_modules/delayed-stream/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3
```unknown SHELL := /bin/bash test: @./test/run.js .PHONY: test ```
/content/code_sandbox/node_modules/delayed-stream/Makefile
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
23
```unknown Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell co...
/content/code_sandbox/node_modules/delayed-stream/License
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
208
```javascript var Stream = require('stream').Stream; var util = require('util'); module.exports = DelayedStream; function DelayedStream() { this.source = null; this.dataSize = 0; this.maxDataSize = 1024 * 1024; this.pauseStream = true; this._maxDataSizeExceeded = false; this._released = false; this._buf...
/content/code_sandbox/node_modules/delayed-stream/lib/delayed_stream.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
578
```javascript /*! * statuses */ 'use strict' /** * Module dependencies. * @private */ var codes = require('./codes.json') /** * Module exports. * @public */ module.exports = status // status code to message map status.message = codes // status message (lower-case) to code map status.code = createMessageT...
/content/code_sandbox/node_modules/statuses/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
635
```javascript /*! * mime-db */ /** * Module exports. */ module.exports = require('./db.json') ```
/content/code_sandbox/node_modules/mime-db/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
21
```javascript 'use strict'; // modified from path_to_url var has = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; var slice = Array.prototype.slice; var isArgs = require('./isArguments'); var hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'); var hasProtoEnumBug = functio...
/content/code_sandbox/node_modules/object-keys/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
883
```javascript 'use strict'; var toStr = Object.prototype.toString; module.exports = function isArguments(value) { var str = toStr.call(value); var isArgs = str === '[object Arguments]'; if (!isArgs) { isArgs = str !== '[object Array]' && value !== null && typeof value === 'object' && typeof value.length...
/content/code_sandbox/node_modules/object-keys/isArguments.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
107
```unknown test/* ```
/content/code_sandbox/node_modules/object-keys/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3
```javascript 'use strict'; require('./isArguments'); require('./shim'); ```
/content/code_sandbox/node_modules/object-keys/test/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
14
```javascript /*! * http-errors */ 'use strict' /** * Module dependencies. * @private */ var deprecate = require('depd')('http-errors') var setPrototypeOf = require('setprototypeof') var statuses = require('statuses') var inherits = require('inherits') var toIdentifier = require('toidentifier') /** * Module e...
/content/code_sandbox/node_modules/http-errors/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,503
```xml import { AgentOptions } from 'agent-base'; import { PacResolverOptions } from 'pac-resolver'; import { HttpProxyAgentOptions } from 'http-proxy-agent'; import { HttpsProxyAgentOptions } from 'https-proxy-agent'; import { SocksProxyAgentOptions } from 'socks-proxy-agent'; import _PacProxyAgent from './agent'; dec...
/content/code_sandbox/node_modules/pac-proxy-agent/dist/index.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
245
```unknown {"version":3,"file":"agent.js","sourceRoot":"","sources":["../src/agent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,8CAAsB;AACtB,8CAAsB;AACtB,6DAAqC;AACrC,oDAA4B;AAC5B,sDAA6B;AAC7B,kDAAgC;AAChC,wDAAkC;AAElC,6BAAoC;AACpC,uDAAkD;AAClD,yDAAoD;AACpD,yDAAoD;AACpD,gEAAkE;AAClE,2CAKoB;AAGpB,MAAM,KAAK,GAAG,eAAW,C...
/content/code_sandbox/node_modules/pac-proxy-agent/dist/agent.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,404
```javascript "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; const get_uri_1 = __importDefault(require("get-uri")); const url_1 = require("url"); const agent_1 = __importDefault(require("./agent")); function create...
/content/code_sandbox/node_modules/pac-proxy-agent/dist/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
334
```unknown {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,sDAA6B;AAC7B,6BAA6B;AAM7B,oDAAqC;AASrC,SAAS,mBAAmB,CAC3B,GAAuD,EACvD,IAA+C;IAE/C,yCAAyC;IACzC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,IAAI,GAAG,GAAG,CAAC;QAEX,gCAAgC;QAChC,IAAI,IAAI,CAAC,IAAI,EAAE;YACd,IA...
/content/code_sandbox/node_modules/pac-proxy-agent/dist/index.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
583
```xml /// <reference types="node" /> import { Readable } from 'stream'; import { FindProxyForURL } from 'pac-resolver'; import { Agent, AgentCallbackReturn, ClientRequest, RequestOptions } from 'agent-base'; import { PacProxyAgentOptions } from '.'; /** * The `PacProxyAgent` class. * * A few different "protocol" mo...
/content/code_sandbox/node_modules/pac-proxy-agent/dist/agent.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
402
```javascript "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfil...
/content/code_sandbox/node_modules/pac-proxy-agent/dist/agent.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,046
```javascript /** * Helpers. */ var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an...
/content/code_sandbox/node_modules/pac-proxy-agent/node_modules/ms/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
981
```javascript /** * Detect Electron renderer / nwjs process, which is node, but we should * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { module.exports = require('./browser.js'); } else { module.exports = require('./node....
/content/code_sandbox/node_modules/pac-proxy-agent/node_modules/debug/src/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
73
```javascript /** * Module dependencies. */ const tty = require('tty'); const util = require('util'); /** * This is the Node.js implementation of `debug()`. */ exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports...
/content/code_sandbox/node_modules/pac-proxy-agent/node_modules/debug/src/node.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,400
```javascript /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.e...
/content/code_sandbox/node_modules/pac-proxy-agent/node_modules/debug/src/common.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,693
```javascript /* eslint-env browser */ /** * This is the web browser implementation of `debug()`. */ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!war...
/content/code_sandbox/node_modules/pac-proxy-agent/node_modules/debug/src/browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,732
```javascript // Generated by LiveScript 1.4.0 (function(){ var ref$, any, all, isItNaN, types, defaultType, customTypes, toString$ = {}.toString; ref$ = require('prelude-ls'), any = ref$.any, all = ref$.all, isItNaN = ref$.isItNaN; types = { Number: { typeOf: 'Number', validate: function(it){ ...
/content/code_sandbox/node_modules/type-check/lib/check.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
898
```javascript // Generated by LiveScript 1.4.0 (function(){ var VERSION, parseType, parsedTypeCheck, typeCheck; VERSION = '0.3.2'; parseType = require('./parse-type'); parsedTypeCheck = require('./check'); typeCheck = function(type, input, options){ return parsedTypeCheck(parseType(type), input, options);...
/content/code_sandbox/node_modules/type-check/lib/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
122
```javascript // Generated by LiveScript 1.4.0 (function(){ var identifierRegex, tokenRegex; identifierRegex = /[\$\w]+/; function peek(tokens){ var token; token = tokens[0]; if (token == null) { throw new Error('Unexpected end of input.'); } return token; } function consumeIdent(tok...
/content/code_sandbox/node_modules/type-check/lib/parse-type.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,230
```javascript "use strict"; module.exports = CSSselect; var Pseudos = require("./lib/pseudos.js"), DomUtils = require("domutils"), findOne = DomUtils.findOne, findAll = DomUtils.findAll, getChildren = DomUtils.getChildren, removeSubsets = DomUtils.removeSubsets, falseF...
/content/code_sandbox/node_modules/css-select/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
403
```javascript (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g....
/content/code_sandbox/node_modules/jsdom/node_modules/acorn/dist/acorn.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
31,260
```javascript var DomUtils = require("domutils"), hasAttrib = DomUtils.hasAttrib, getAttributeValue = DomUtils.getAttributeValue, falseFunc = require("boolbase").falseFunc; //path_to_url#L469 var reChars = /[-[\]{}()*+?.,\\^$|#\s]/g; /* attribute selectors */ var attributeRules = { __proto__: null, e...
/content/code_sandbox/node_modules/css-select/lib/attributes.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,108
```javascript module.exports = sortByProcedure; /* sort the parts of the passed selector, as there is potential for optimization (some types of selectors are faster than others) */ var procedure = require("./procedure.json"); var attributes = { __proto__: null, exists: 10, equals: 8, not: 7, start: 6, end: ...
/content/code_sandbox/node_modules/css-select/lib/sort.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
550
```javascript var DomUtils = require("domutils"), isTag = DomUtils.isTag, getParent = DomUtils.getParent, getChildren = DomUtils.getChildren, getSiblings = DomUtils.getSiblings, getName = DomUtils.getName; /* all available rules */ module.exports = { __proto__: null, attribute: r...
/content/code_sandbox/node_modules/css-select/lib/general.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
482
```javascript /* compiles a selector to an executable function */ module.exports = compile; module.exports.compileUnsafe = compileUnsafe; module.exports.compileToken = compileToken; var parse = require("css-what"), DomUtils = require("domutils"), isTag = DomUtils.isTag, Rules = requi...
/content/code_sandbox/node_modules/css-select/lib/compile.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,209
```unknown {"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,6DAAqC;AACrC,kDAAgC;AAEhC,6BAAyD;AAEzD,8DAAqC;AACrC,0DAAuC;AACvC,gEAA6C;AAE7C,MAAM,KAAK,GAAG,eAAW,CAAC,cAAc,CAAC,CAAC;AAuB1C;;GAEG;AACH,SAA8B,GAAG,CAChC,MAA0B,EAC1B,I...
/content/code_sandbox/node_modules/get-uri/dist/http.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,281
```javascript "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfil...
/content/code_sandbox/node_modules/get-uri/dist/data.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
566
```javascript /* pseudo selectors --- they are available in two forms: * filters called when the selector is compiled and return a function that needs to return next() * pseudos get called on execution they need to return a boolean */ var DomUtils = require("domutils"), isTag = DomUtils.is...
/content/code_sandbox/node_modules/css-select/lib/pseudos.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,681
```unknown {"version":3,"file":"notfound.js","sourceRoot":"","sources":["../src/notfound.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,MAAqB,aAAc,SAAQ,KAAK;IAG/C,YAAY,OAAgB;QAC3B,KAAK,CAAC,OAAO,IAAI,+CAA+C,CAAC,CAAC;QAH5D,SAAI,GAAG,WAAW,CAAC;QAIzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACn...
/content/code_sandbox/node_modules/get-uri/dist/notfound.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
169
```xml /// <reference types="node" /> import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; /** * Async function that returns a `stream.Readable` instance to the * callback function that will output the contents of the given URI. * * For caching purposes, you can pass in a `stream` instance f...
/content/code_sandbox/node_modules/get-uri/dist/index.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
367
```unknown {"version":3,"file":"data.js","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mCAAkC;AAClC,mCAAoC;AAEpC,4EAAiD;AAEjD,gEAA6C;AAE7C,MAAM,KAAK,GAAG,eAAW,CAAC,cAAc,CAAC,CAAC;AAE1C,MAAM,YAAa,SAAQ,iBAAQ;IAGlC,YAAY,IAAY,EAAE,GAAW;QACpC,KAAK,EAAE,CAAC;QACR,IAAI,CAA...
/content/code_sandbox/node_modules/get-uri/dist/data.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
624
```javascript "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const https_1 = __importDefault(require("https")); const http_1 = __importDefault(require(...
/content/code_sandbox/node_modules/get-uri/dist/https.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
130
```xml /// <reference types="node" /> import { Options } from 'ftp'; import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; import { GetUriOptions } from '.'; interface FTPReadable extends Readable { lastModified?: Date; } interface FTPOptions extends GetUriOptions, Options { cache?: FTPRe...
/content/code_sandbox/node_modules/get-uri/dist/ftp.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
124
```xml /// <reference types="node" /> import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; import { GetUriOptions } from '.'; declare class DataReadable extends Readable { hash?: string; constructor(hash: string, buf: Buffer); } interface DataOptions extends GetUriOptions { cache?: D...
/content/code_sandbox/node_modules/get-uri/dist/data.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
115
```javascript "use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; const debug_1 = __importDefault(require("debug")); const url_1 = require("url"); // Built-in protocols const data_1 = __importDefault(require("./data"));...
/content/code_sandbox/node_modules/get-uri/dist/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
434
```unknown {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,kDAAgC;AAEhC,6BAAgD;AAEhD,qBAAqB;AACrB,kDAA0B;AAC1B,kDAA0B;AAC1B,gDAAwB;AACxB,kDAA0B;AAC1B,oDAA4B;AAE5B,MAAM,KAAK,GAAG,eAAW,CAAC,SAAS,CAAC,CAAC;AAyBrC,SAAS,MAAM,CACd,GAAW,EACX,IAAmD,EACnD,EAA0B;IAE1B,...
/content/code_sandbox/node_modules/get-uri/dist/index.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
921
```unknown {"version":3,"file":"ftp.js","sourceRoot":"","sources":["../src/ftp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6DAAqC;AACrC,8CAAmD;AAEnD,+BAAyC;AAEzC,kDAAgC;AAEhC,0DAAuC;AACvC,gEAA6C;AAE7C,MAAM,KAAK,GAAG,eAAW,CAAC,aAAa,CAAC,CAAC;AAWzC;;GAEG;AACH,SAA8B,GAAG,CAChC,MAA0B,EAC1B,IAAgB;;QAEhB,MAAM,EAAE,KAAK,EA...
/content/code_sandbox/node_modules/get-uri/dist/ftp.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,924
```unknown {"version":3,"file":"notmodified.js","sourceRoot":"","sources":["../src/notmodified.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,MAAqB,gBAAiB,SAAQ,KAAK;IAGlD,YAAY,OAAgB;QAC3B,KAAK,CACJ,OAAO;YACN,iFAAiF,CAClF,CAAC;QANI,SAAI,GAAG,cAAc,CAAC;QAO5B,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,C...
/content/code_sandbox/node_modules/get-uri/dist/notmodified.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
173
```unknown {"version":3,"file":"file.js","sourceRoot":"","sources":["../src/file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAEA,kDAAgC;AAChC,2BAA6C;AAC7C,uCAAuC;AACvC,wEAAwC;AAExC,0DAAuC;AACvC,gEAA6C;AAE7C,MAAM,KAAK,GAAG,eAAW,CAAC,cAAc,CAAC,CAAC;AAgB1C;;GAEG;AAEH,SAA8B,GAAG,CAChC,EAAE,IAAI,EAAE,GAAG,EAAsB,EACjC,IAAiB;;...
/content/code_sandbox/node_modules/get-uri/dist/file.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
789
```unknown {"version":3,"file":"http-error.js","sourceRoot":"","sources":["../src/http-error.ts"],"names":[],"mappings":";;AAAA,+BAAoC;AAEpC;;GAEG;AACH,MAAqB,SAAU,SAAQ,KAAK;IAI3C,YAAY,UAAkB,EAAE,OAAO,GAAG,mBAAY,CAAC,UAAU,CAAC;QACjE,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,GAAG,CAAC,MAAM,CAAC,SAAS,CAA...
/content/code_sandbox/node_modules/get-uri/dist/http-error.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
267
```xml /// <reference types="node" /> import http from 'http'; import https from 'https'; import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; import { GetUriOptions } from '.'; declare type HttpOrHttpsModule = typeof http | typeof https; export interface HttpReadableProps { date?: number; ...
/content/code_sandbox/node_modules/get-uri/dist/http.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
192
```xml /** * Error subclass to use when an HTTP application error has occurred. */ export default class HTTPError extends Error { code: string; statusCode: number; constructor(statusCode: number, message?: string | undefined); } ```
/content/code_sandbox/node_modules/get-uri/dist/http-error.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
48
```xml /** * Error subclass to use when the source has not been modified. * * @param {String} message optional "message" property to set * @api protected */ export default class NotModifiedError extends Error { code: string; constructor(message?: string); } ```
/content/code_sandbox/node_modules/get-uri/dist/notmodified.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
58
```javascript "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfil...
/content/code_sandbox/node_modules/get-uri/dist/http.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,856
```javascript "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const http_1 = require("http"); /** * Error subclass to use when an HTTP application error has occurred. */ class HTTPError extends Error { constructor(statusCode, message = http_1.STATUS_CODES[statusCode]) { super(...
/content/code_sandbox/node_modules/get-uri/dist/http-error.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
120
```unknown {"version":3,"file":"https.js","sourceRoot":"","sources":["../src/https.ts"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAG1B,kDAA2C;AAE3C;;GAEG;AACH,SAAwB,GAAG,CAC1B,MAA0B,EAC1B,IAAiB;IAEjB,OAAO,cAAI,CAAC,MAAM,kCAAO,IAAI,KAAE,IAAI,EAAE,eAAK,IAAG,CAAC;AAC/C,CAAC;AALD,sBAKC"} ```
/content/code_sandbox/node_modules/get-uri/dist/https.js.map
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
136
```xml /// <reference types="node" /> import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; import { Stats, createReadStream } from 'fs'; import { GetUriOptions } from '.'; declare type ReadStreamOptions = Exclude<Parameters<typeof createReadStream>[1], string>; interface FileReadable extends Rea...
/content/code_sandbox/node_modules/get-uri/dist/file.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
140
```javascript "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Error subclass to use when the source has not been modified. * * @param {String} message optional "message" property to set * @api protected */ class NotModifiedError extends Error { constructor(message) { ...
/content/code_sandbox/node_modules/get-uri/dist/notmodified.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
123
```xml /// <reference types="node" /> import { Readable } from 'stream'; import { UrlWithStringQuery } from 'url'; import { HttpOptions } from './http'; /** * Returns a Readable stream from an "https:" URI. */ export default function get(parsed: UrlWithStringQuery, opts: HttpOptions): Promise<Readable>; ```
/content/code_sandbox/node_modules/get-uri/dist/https.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
71
```javascript "use strict"; /** * Error subclass to use when the source does not exist at the specified endpoint. * * @param {String} message optional "message" property to set * @api protected */ Object.defineProperty(exports, "__esModule", { value: true }); class NotFoundError extends Error { constructor(mes...
/content/code_sandbox/node_modules/get-uri/dist/notfound.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
114
```javascript "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfil...
/content/code_sandbox/node_modules/get-uri/dist/ftp.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,040
```xml /** * Error subclass to use when the source does not exist at the specified endpoint. * * @param {String} message optional "message" property to set * @api protected */ export default class NotFoundError extends Error { code: string; constructor(message?: string); } ```
/content/code_sandbox/node_modules/get-uri/dist/notfound.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
60
```javascript "use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfil...
/content/code_sandbox/node_modules/get-uri/dist/file.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
705
```javascript /** * Detect Electron renderer / nwjs process, which is node, but we should * treat as a browser. */ if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { module.exports = require('./browser.js'); } else { module.exports = require('./node....
/content/code_sandbox/node_modules/get-uri/node_modules/debug/src/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
73
```javascript /** * Helpers. */ var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an...
/content/code_sandbox/node_modules/get-uri/node_modules/ms/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
981
```javascript /** * Module dependencies. */ const tty = require('tty'); const util = require('util'); /** * This is the Node.js implementation of `debug()`. */ exports.init = init; exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports...
/content/code_sandbox/node_modules/get-uri/node_modules/debug/src/node.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,400
```javascript /** * This is the common logic for both the Node.js and web browser * implementations of `debug()`. */ function setup(env) { createDebug.debug = createDebug; createDebug.default = createDebug; createDebug.coerce = coerce; createDebug.disable = disable; createDebug.enable = enable; createDebug.e...
/content/code_sandbox/node_modules/get-uri/node_modules/debug/src/common.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,693
```unknown /node_modules /test ```
/content/code_sandbox/node_modules/recast/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
6
```javascript /* eslint-env browser */ /** * This is the web browser implementation of `debug()`. */ exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = localstorage(); exports.destroy = (() => { let warned = false; return () => { if (!war...
/content/code_sandbox/node_modules/get-uri/node_modules/debug/src/browser.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,732
```javascript var types = require("./lib/types"); var parse = require("./lib/parser").parse; var Printer = require("./lib/printer").Printer; function print(node, options) { return new Printer(options).print(node); } function prettyPrint(node, options) { return new Printer(options).printGenerically(node); } f...
/content/code_sandbox/node_modules/recast/main.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
506
```unknown #!/usr/bin/env node // This script should reprint the contents of the given file without // reusing the original source, but with identical AST structure. var recast = require("recast"); recast.run(function(ast, callback) { recast.visit(ast, { visitNode: function(path) { this.trave...
/content/code_sandbox/node_modules/recast/example/generic-identity
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
88
```unknown #!/usr/bin/env node var recast = require("recast"); var types = recast.types; var n = types.namedTypes; var b = types.builders; require("recast").run(function(ast, callback) { recast.visit(ast, { visitIfStatement: function(path) { var stmt = path.node; stmt.consequent = ...
/content/code_sandbox/node_modules/recast/example/add-braces
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
222