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
```unknown { "boss": true, "curly": true, "devel": false, "eqnull": false, "expr": true, "funcscope": true, "globalstrict": false, "loopfunc": false, "newcap": true, "node": true, "noempty": true, "nonstandard": false, "onecase": false, "trailing": true, "undef": true, "unused": true } ...
/content/code_sandbox/node_modules/jstransform/.jshintrc
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
110
```unknown .DS_STORE node_modules *.swp *~ ```
/content/code_sandbox/node_modules/jstransform/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
14
```markdown # mkdirp Like `mkdir -p`, but in node.js! [![build status](path_to_url # example ## pow.js ```js var mkdirp = require('mkdirp'); mkdirp('/tmp/foo/bar/baz', function (err) { if (err) console.error(err) else console.log('pow!') }); ``` Output ``` pow! ``` And now /tmp/foo/bar/baz exists, ...
/content/code_sandbox/node_modules/mkdirp/readme.markdown
markdown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
521
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*global exports:true*/ /** * Desugars ES6 Arrow functions to ES3 function expressions. * If the function contains `this` e...
/content/code_sandbox/node_modules/jstransform/visitors/es6-arrow-function-visitors.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
695
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*jslint node:true*/ /** * @typechecks */ 'use strict'; var Syntax = require('esprima-fb').Syntax; var utils = require('.....
/content/code_sandbox/node_modules/jstransform/visitors/es6-template-visitors.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
975
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*jslint node: true*/ /** * Desugars ES6 Object Literal short notations into ES3 full notation. * * // Easier return value...
/content/code_sandbox/node_modules/jstransform/visitors/es6-object-short-notation-visitors.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
258
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*jslint node:true*/ /** * Desugars ES6 rest parameters into ES3 arguments slicing. * * function printf(template, ...args)...
/content/code_sandbox/node_modules/jstransform/visitors/es6-rest-param-visitors.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
481
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*jslint node:true*/ /** * @typechecks */ 'use strict'; var base62 = require('base62'); var Syntax = require('esprima-fb')...
/content/code_sandbox/node_modules/jstransform/visitors/es6-class-visitors.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,256
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /** * @emails dmitrys@fb.com javascript@lists.facebook.com */ /*jshint evil:true*/ require('mock-modules').autoMockOff(); ...
/content/code_sandbox/node_modules/jstransform/visitors/__tests__/es6-arrow-function-visitors-test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,216
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /** * @emails dmitrys@fb.com javascript@lists.facebook.com */ /*jshint evil:true*/ require('mock-modules').autoMockOff(); ...
/content/code_sandbox/node_modules/jstransform/visitors/__tests__/es6-object-short-notation-visitors-test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
642
```javascript /** * @emails mroch@fb.com javascript@lists.facebook.com */ /*jshint evil:true*/ require('mock-modules').autoMockOff(); describe('ES6 Template Visitor', function() { var transformFn; var visitors; beforeEach(function() { require('mock-modules').dumpCache(); visitors = require('../es6-t...
/content/code_sandbox/node_modules/jstransform/visitors/__tests__/es6-template-visitors-test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,825
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /** * @emails dmitrys@fb.com javascript@lists.facebook.com */ /*jshint evil:true*/ require('mock-modules').autoMockOff(); ...
/content/code_sandbox/node_modules/jstransform/visitors/__tests__/es6-rest-param-visitors-test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,317
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*jslint node: true*/ "use strict"; /** * Syntax transfomer for javascript. Takes the source in, spits the source * out. ...
/content/code_sandbox/node_modules/jstransform/src/jstransform.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,509
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ var docblockRe = /^\s*(\/\*\*(.|\r?\n)*?\*\/)/; var ltrimRe = /^\s*/; /** * @param {String} contents * @return {String} */ ...
/content/code_sandbox/node_modules/jstransform/src/docblock.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
535
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * @emails jeffmo@fb.com javascript@lists.facebook.com */ /*jshint evil:true*/ require('mock-modules').autoMockOff(); descri...
/content/code_sandbox/node_modules/jstransform/visitors/__tests__/es6-class-visitors-test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
7,689
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /*jslint node: true*/ /** * A `state` object represents the state of the parser. It has "local" and * "global" parts. Glob...
/content/code_sandbox/node_modules/jstransform/src/utils.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,050
```javascript 'use strict'; var acorn = require('acorn'); var walk = require('acorn/dist/walk'); function isScope(node) { return node.type === 'FunctionExpression' || node.type === 'FunctionDeclaration' || node.type === 'ArrowFunctionExpression' || node.type === 'Program'; } function isBlockScope(node) { return n...
/content/code_sandbox/node_modules/acorn-globals/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,289
```javascript /** * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * @emails jeffmo@fb.com javascript@lists.facebook.com */ require('mock-modules').autoMockOff(); describe('jstransform', func...
/content/code_sandbox/node_modules/jstransform/src/__tests__/jstransform-test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,966
```unknown List of Acorn contributors. Updated before every release. Adrian Rakovsky Alistair Braidwood Andres Suarez Aparajita Fishman Arian Stolwijk Artem Govorov Brandon Mills Charles Hughes Conrad Irwin David Bonnet ForbesLindesay Forbes Lindesay Gilad Peleg impinball Ingvar Stepanyan Jesse McCarthy Jiaxing Wang J...
/content/code_sandbox/node_modules/acorn-globals/node_modules/acorn/AUTHORS
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
212
```unknown { "plugins": { "node": true, "es_modules": true } } ```
/content/code_sandbox/node_modules/acorn-globals/node_modules/acorn/.tern-project
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
23
```unknown /.tern-port /test /local ```
/content/code_sandbox/node_modules/acorn-globals/node_modules/acorn/.npmignore
unknown
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
9
```javascript // Acorn is a tiny, fast JavaScript parser written in JavaScript. // // Acorn was written by Marijn Haverbeke, Ingvar Stepanyan, and // various contributors and released under an MIT license. // // Git repositories for Acorn are available at // // path_to_url // path_to_url // // Please use the [g...
/content/code_sandbox/node_modules/acorn-globals/node_modules/acorn/src/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
509
```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/acorn-globals/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/acorn-globals/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 {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/acorn-globals/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 {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/acorn-globals/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 {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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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 // 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/acorn-globals/node_modules/acorn/src/whitespace.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
132
```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/acorn-globals/node_modules/acorn/src/state.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
869
```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/acorn-globals/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 {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/acorn-globals/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/acorn-globals/node_modules/acorn/src/locutil.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
281
```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/acorn-globals/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 ```
/content/code_sandbox/node_modules/acorn-globals/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 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/acorn-globals/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 {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/acorn-globals/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 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/acorn-globals/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 export function isDummy(node) { return node.name == "" } ```
/content/code_sandbox/node_modules/acorn-globals/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/acorn-globals/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 {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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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/acorn-globals/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
```xml declare function stringify( value: any, replacer?: (key: string, value: any) => any, space?: string | number, options?: { depthLimit: number | undefined; edgesLimit: number | undefined } ): string; declare namespace stringify { export function stable( value: any, replacer?: (key: string, value...
/content/code_sandbox/node_modules/fast-safe-stringify/index.d.ts
xml
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
175
```javascript const Benchmark = require('benchmark') const suite = new Benchmark.Suite() const { inspect } = require('util') const jsonStringifySafe = require('json-stringify-safe') const fastSafeStringify = require('./') const array = new Array(10).fill(0).map((_, i) => i) const obj = { foo: array } const circ = JSON...
/content/code_sandbox/node_modules/fast-safe-stringify/benchmark.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,183
```javascript module.exports = stringify stringify.default = stringify stringify.stable = deterministicStringify stringify.stableStringify = deterministicStringify var LIMIT_REPLACE_NODE = '[...]' var CIRCULAR_REPLACE_NODE = '[Circular]' var arr = [] var replacerStack = [] function defaultOptions () { return { ...
/content/code_sandbox/node_modules/fast-safe-stringify/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,553
```javascript const test = require('tap').test const fss = require('./').stable const clone = require('clone') const s = JSON.stringify const stream = require('stream') test('circular reference to root', function (assert) { const fixture = { name: 'Tywin Lannister' } fixture.circle = fixture const expected = s({...
/content/code_sandbox/node_modules/fast-safe-stringify/test-stable.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,652
```javascript const test = require('tap').test const fss = require('./') const clone = require('clone') const s = JSON.stringify const stream = require('stream') test('circular reference to root', function (assert) { const fixture = { name: 'Tywin Lannister' } fixture.circle = fixture const expected = s({ name: ...
/content/code_sandbox/node_modules/fast-safe-stringify/test.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,608
```javascript 'use strict' exports.fromCallback = function (fn) { return Object.defineProperty(function () { if (typeof arguments[arguments.length - 1] === 'function') fn.apply(this, arguments) else { return new Promise((resolve, reject) => { arguments[arguments.length] = (err, res) => { ...
/content/code_sandbox/node_modules/universalify/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
186
```javascript /*! * toidentifier */ 'use strict' /** * Module exports. * @public */ module.exports = toIdentifier /** * Trasform the given string into a JavaScript identifier * * @param {string} str * @returns {string} * @public */ function toIdentifier (str) { return str .split(' ') .map(func...
/content/code_sandbox/node_modules/toidentifier/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
123
```javascript 'use strict'; var crypto_hash_sha512 = require('tweetnacl').lowlevel.crypto_hash; /* * This file is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a * result, it retains the original copyright and license. The two files are * under slightly different (but compatible) licenses, and are ...
/content/code_sandbox/node_modules/bcrypt-pbkdf/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
11,907
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/lib-typedarrays.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
500
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha1", "./hmac"], factory); } el...
/content/code_sandbox/node_modules/crypto-js/hmac-sha1.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
125
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD def...
/content/code_sandbox/node_modules/crypto-js/aes.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,722
```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/acorn-globals/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 ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512"), require("./sha384"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["...
/content/code_sandbox/node_modules/crypto-js/hmac-sha384.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
145
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/ripemd160.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,375
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./lib-typedarrays"), require("./enc-utf16"), require("./enc-base64"), require("./md5"), require("./sha1"), require("./sha256"), requ...
/content/code_sandbox/node_modules/crypto-js/index.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
463
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD def...
/content/code_sandbox/node_modules/crypto-js/rabbit.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,479
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/mode-ctr-gladman.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
722
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/enc-base64.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,020
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/mode-ctr.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
360
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./ripemd160"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./ripemd160", "./hmac"], factor...
/content/code_sandbox/node_modules/crypto-js/hmac-ripemd160.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
129
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/mode-cfb.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
484
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha3"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core", ...
/content/code_sandbox/node_modules/crypto-js/hmac-sha3.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
136
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha256"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha256", "./hmac"], factory); }...
/content/code_sandbox/node_modules/crypto-js/hmac-sha256.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
125
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(); } else if (typeof define === "function" && define.amd) { // AMD define([], factory); } else { // Global (browser) root.CryptoJS = factory(); } }(this, function () { /** *...
/content/code_sandbox/node_modules/crypto-js/core.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
4,747
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core", "./sha512"], fact...
/content/code_sandbox/node_modules/crypto-js/sha384.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
676
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/sha1.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,173
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/enc-utf16.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,026
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD def...
/content/code_sandbox/node_modules/crypto-js/rc4.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
953
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./x64-core"), require("./sha512"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./x64-core"...
/content/code_sandbox/node_modules/crypto-js/hmac-sha512.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
136
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha1", "./hmac"], factory); } el...
/content/code_sandbox/node_modules/crypto-js/pbkdf2.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,038
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/format-openssl.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
115
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha256"), require("./sha224"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha256", "....
/content/code_sandbox/node_modules/crypto-js/hmac-sha224.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
134
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/mode-ofb.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
327
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD def...
/content/code_sandbox/node_modules/crypto-js/rabbit-legacy.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
2,445
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/pad-pkcs7.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
117
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/enc-utf8.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
105
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./sha1"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./sha1", "./hmac"], factory); } el...
/content/code_sandbox/node_modules/crypto-js/evpkdf.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
943
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./enc-base64"), require("./md5"), require("./evpkdf"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD def...
/content/code_sandbox/node_modules/crypto-js/tripledes.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
9,314
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/pad-iso10126.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
292
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/enc-latin1.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
105
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/sha256.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
1,555
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/format-hex.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
417
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/md5.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
3,325
```javascript ;(function (root, factory) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core"], factory); } else { // Global (browser) factory(root.CryptoJS); } }(this, f...
/content/code_sandbox/node_modules/crypto-js/hmac.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
885
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./md5"), require("./hmac")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./md5", "./hmac"], factory); } else...
/content/code_sandbox/node_modules/crypto-js/hmac-md5.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
125
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/pad-zeropadding.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
274
```javascript ;(function (root, factory, undef) { if (typeof exports === "object") { // CommonJS module.exports = exports = factory(require("./core"), require("./cipher-core")); } else if (typeof define === "function" && define.amd) { // AMD define(["./core", "./cipher-core"], factory); } else { // Globa...
/content/code_sandbox/node_modules/crypto-js/pad-nopadding.js
javascript
2016-03-11T09:28:00
2024-08-16T17:55:54
antSword
AntSwordProject/antSword
3,579
153