Imitated Linux environment into my portfolio-website using javascript
It uses json for setting up an Linux like enviorment
{
"env": {
"bin": ["cat", "ls", "cd", "write"],
"home": {
"about_me.txt": "My name is Ayan Ambesh and im known as Sinister Draco",
"status.txt": "I am a student studying computer science",
"contact_me.txt": "You can contact me at [email protected]"
}
},
"command" : ["cat", "ls", "dir", "cd", "write"]
}
- Write command
- modify the enviornment