Find the soundtrack authors and tracklist of your favorite movies directly from a local JSON database.
npm install get-movie-ostFind the soundtrack authors and tracklist of your favorite movies directly from a local JSON database.
---
``bash`
npm install -g movie-ost-finder
or, if you want to use it without installing globally:
`bash`
npx movie-ost-finder
---
This tool asks for a movie name, looks it up inside a local movies.json file, and prints out the soundtrack authors and tracklist.
It uses:
- readline for CLI input
- fs/promises for reading the JSON file
- speakingurl for slug normalization (to match titles even if the user types extra spaces or different capitalization)
---
Your movies.json should look like this:
`json`
{
"films": [
{
"film_name": "Akira",
"soundtrack_authors": ["Geinoh Yamashirogumi"],
"tracks": [
"Kaneda",
"Battle Against Clown",
"Tetsuo",
"Shohmyoh",
"Exodus from the Underground Fortress"
]
},
{
"film_name": "Profondo Rosso",
"soundtrack_authors": ["Goblin", "Giorgio Gaslini"],
"tracks": [
"Profondo Rosso (Main Theme)",
"Mad Puppet",
"Death Dies",
"Deep Shadows"
]
}
]
}
---
Run the script:
`bash`
node src/index.js
Or, if you published it globally:
`bash`
movie-ost-finder
Then type the movie name when prompted:
``
Tell me the name of a movie: Akira
š¼ Authors: Geinoh Yamashirogumi
šµ Tracklist:
1. Kaneda
2. Battle Against Clown
3. Tetsuo
4. Shohmyoh
5. Exodus from the Underground Fortress
---
``
movie-ost-finder/
āāā src/
ā āāā index.js
āāā movies.json
āāā package.json
āāā README.md
---
3. Reads the local JSON file
4. Finds the corresponding movie
5. Prints the soundtrack authors and tracklist to the console---
š§° Dependencies
| Package | Description |
|----------|-------------|
|
speakingurl | Converts movie titles into comparable slugs |
| fs/promises | Reads JSON file asynchronously |
| readline` | Handles CLI input/output |---
MIT Ā© 2025 Madda