Skip to content

An API that allows NDS Rom headers to be used in node.js.

License

Notifications You must be signed in to change notification settings

SamHep0803/NDSApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NDSApi

Introduction

Hello Everyone!

NDSApi is a node.js API that allows you to use ANY Nintendo DS Rom, get it's cartridge headers and use it in your code!

This API removes the hassle of finding the NDS header offsets and sizes and squeezes all of the multi-line code into one line of code for each header. (amazing, right?)

This can be useful for making discord bots or anything that you can imagine.

Usage

Right now, there are only three different things that you can use with a ROM.

  • Selecting a rom with (ndsrom variable).selectrom();
    • The ROM has to be in the same directory for this to work.
    • It cannot be a 3DS rom. (just yet!)
  • The internal name header with (ndsrom variable).intname();
  • The Game ID with (ndsrom variable).gameid();

Example

Here's an example of how you can use this API.

const NDSApi = require('ndsapi');

NDSApi.selectrom();

var InternalName = NDSApi.intname();
var GameID = NDSApi.gameid();

console.log(InternalName + ' ' + GameID);

Todo List

  • Add more headers
  • Add 3DS rom support

About

An API that allows NDS Rom headers to be used in node.js.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published