The project is not written in typescript, some function and use was changed by the developer.
// Here's the sample code
const {searchSong} = require("ultimate-guitar")
(async function(){
const result = await searchSong("Hello")
console.log(result)
})
// INFO: You may also use this format
const {searchSong, CHORDS} = require("ultimate-guitar")
(async function(){
const result = await searchSong("Hello", "Adele", CHORDS)
// OR
const result = await searchSong("Hello", null, CHORDS)
})
// NOTE: You may now use the category without having artist
const {searchSong, CHORDS} = require("ultimate-guitar")
(async function(){
const result = await searchSong("Hello", CHORDS)
})
// Here's the sample code
const {searchSong, fetchChords} = require("ultimate-guitar")
(async function(){
const result = await searchSong("Hello")
const g = await fetchChords(result.responses[0])
console.log(q)
})
// OR
const {searchSong, fetchChords} = require("ultimate-guitar")
(async function(){
const result = await searchSong("Hello")
const g = await fetchChords(
"https://tabs.ultimate-guitar.com/tab/adele/hello-chords-1775924",
);
console.log(q);
The program returns
three status code
, either200
,404
or500
. Basically the 200 response is success and 404 is not found or error and 500 turns as server error. Bugs and errors are still expected to this project, but still trying to improve it and make the error lesser or can handle by the program.
- Lester Navarra
- John Paul Caigas
- Mart Anthony Salazar
- Salvador
- Earl Shine Sawir
- John Jeremy Antiguo
- John Roy Lapida Calimlim
- Mark Kevin Manalo
- Freecodecamp
- Tutorialspoint
- Roderick Alcantara