mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +08:00
Officially switching to ES Module system.
This commit is contained in:
@ -61,6 +61,12 @@ should add unique value.
|
|||||||
* **Example:**`UserProfile.js` is allowed but `userprofile.js`,`Userprofile.js`,`user-Profile.js`,`userProfile.js` are
|
* **Example:**`UserProfile.js` is allowed but `userprofile.js`,`Userprofile.js`,`user-Profile.js`,`userProfile.js` are
|
||||||
not.
|
not.
|
||||||
|
|
||||||
|
#### Module System
|
||||||
|
|
||||||
|
We use the [ES Module](https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/) system, which bring an official, standardized module system to JavaScript.
|
||||||
|
|
||||||
|
It roughly means you will need to use `export` and `import` statements instead of `module.exports` and `require()`.
|
||||||
|
|
||||||
#### Testing
|
#### Testing
|
||||||
|
|
||||||
Be confident that your code works. When was the last time you committed a code change, your build failed, and half of
|
Be confident that your code works. When was the last time you committed a code change, your build failed, and half of
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "javascript",
|
"name": "javascript",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"type": "module",
|
||||||
"description": "A repository for All algorithms implemented in Javascript (for educational purposes only)",
|
"description": "A repository for All algorithms implemented in Javascript (for educational purposes only)",
|
||||||
"main": "",
|
"main": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Reference in New Issue
Block a user