Skip to content

Instantly share code, notes, and snippets.

@dherman
Forked from anonymous/dave.js
Last active December 16, 2015 13:19
Show Gist options
  • Save dherman/5440405 to your computer and use it in GitHub Desktop.
Save dherman/5440405 to your computer and use it in GitHub Desktop.

Revisions

  1. Dave Herman revised this gist Apr 27, 2013. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions winning.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    export default f(1, 2, 3); // anonymous export
    export let foo = 5; // named declaration export
    export { foo } // named export of existing identifier
    export { foo, bar }; // named export of multiple existing identifiers
    export { foo as f }; // named aliasing export
    export { foo as f, bar }; // you get the idea

    import glob from "glob"; // anonymous import
    import { sync } from "glob"; // named import
    import { sync as s } from "glob"; // named aliasing import
    module fs from "fs"; // import of module instance object, not anonymous module
  2. Dave Herman revised this gist Apr 27, 2013. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions domenic-andreas.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    export default f(1, 2, 3); // anonymous export
    export let foo = 5; // named declaration export
    export <foo> // named export of existing identifier
    export <foo, bar>; // named export of multiple existing identifiers
    export <foo as f>; // named aliasing export
    export <foo as f, bar>; // you get the idea

    import glob from "glob"; // anonymous import
    import <sync> from "glob"; // named import
    import <sync as s> from "glob"; // named aliasing import
    module fs from "fs"; // import of module instance object, not anonymous module
  3. @invalid-email-address Anonymous created this gist Apr 23, 2013.
    11 changes: 11 additions & 0 deletions dave.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    export default f(1, 2, 3); // anonymous export
    export let foo = 5; // named declaration export
    export foo // named export of existing identifier
    export foo, bar; // named export of multiple existing identifiers
    export foo as f; // named aliasing export
    export foo as f, bar; // you get the idea

    import default glob from "glob"; // anonymous import
    import sync from "glob"; // named import
    import sync as s from "glob"; // named aliasing import
    import "fs" as fs; // import of module instance object, not anonymous module
    11 changes: 11 additions & 0 deletions domenic.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    export default f(1, 2, 3); // anonymous export
    export let foo = 5; // named declaration export
    export <foo> // named export of existing identifier
    export <foo, bar>; // named export of multiple existing identifiers
    export <foo as f>; // named aliasing export
    export <foo as f, bar>; // you get the idea

    import glob from "glob"; // anonymous import
    import <sync> from "glob"; // named import
    import <sync as s> from "glob"; // named aliasing import
    import "fs" as fs; // import of module instance object, not anonymous module
    11 changes: 11 additions & 0 deletions kevin.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    export default f(1, 2, 3); // anonymous export
    export let foo = 5; // named declaration export
    export foo // named export of existing identifier
    export foo, bar; // named export of multiple existing identifiers
    export foo as f; // named aliasing export
    export foo as f, bar; // you get the idea

    import "glob" as glob; // anonymous import
    import sync from "glob"; // named import
    import sync as s from "glob"; // named aliasing import
    import module "fs" as fs; // import of module instance object, not anonymous module
    11 changes: 11 additions & 0 deletions static.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    export f(1, 2, 3); // anonymous export
    export let foo = 5; // named declaration export
    export static foo // named export of existing identifier
    export static foo, bar; // named export of multiple existing identifiers
    export static foo as f; // named aliasing export
    export static foo as f, bar; // you get the idea

    import glob from "glob"; // anonymous import
    import static sync from "glob"; // named import
    import static sync as s from "glob"; // named aliasing import
    import "fs" as fs; // import of module instance object, not anonymous export