-
-
Save dherman/5440405 to your computer and use it in GitHub Desktop.
Revisions
-
Dave Herman revised this gist
Apr 27, 2013 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
Dave Herman revised this gist
Apr 27, 2013 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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