ES proposal: import.meta – module metadata

in #js8 years ago (edited)

The proposal “import.meta” by Domenic Denicola is currently at stage 3. This blog post explains how it works.

Module metadata

When it comes to working with a module, you are normally interested in what’s inside it. But occasionally, you need information about the module – its metadata. One example of module metadata for Node.js modules is the global variable __dirname which contains the path of the directory in which the current module is stored.

The proposal introduces the pseudo-property import.meta which holds an object with metadata for the current module. Let’s look at uses cases for module metadata.

http://2ality.com/2017/11/import-meta.html

See here

Sort:  

Congratulations @opticons! You have received a personal award!

1 Year on Steemit
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemFest3 and SteemitBoard - Meet the Steemians Contest

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @opticons! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

SteemFest Meet The Stemians Contest - The mysterious rule revealed
Vote for @Steemitboard as a witness to get one more award and increased upvotes!