Skip to content

Instantly share code, notes, and snippets.

Created April 23, 2013 02:38
Show Gist options
  • Save anonymous/5440402 to your computer and use it in GitHub Desktop.
Save anonymous/5440402 to your computer and use it in GitHub Desktop.

Revisions

  1. @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