Starting the Project | XRPL Development in JavaScript - Level 3
Let’s start by creating the project.
Creating the Project
Section titled “Creating the Project”From now on, we will proceed using a more modern setup method.
First, create a project as usual.
// Create and navigate to the directorymkdir xrpl-cross-currencycd xrpl-cross-currency
// Initialize the projectnpm init -ynpm install xrplEnabling ES6 Modules
Section titled “Enabling ES6 Modules”Next, enable ES6 modules by adding the following setting to your package.json.
It doesn’t matter where you place it, but make sure to modify it as shown below.
{ "name": "xrpl-cross-currency", "version": "1.0.0", "main": "index.js", "type": "module", // Add this line "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "description": "", "dependencies": { "xrpl": "^3.0.0" }}