https://github.com/nrkn/doom-wad
Read data out of a DOOM WAD
https://github.com/nrkn/doom-wad
Last synced: 5 days ago
JSON representation
Read data out of a DOOM WAD
- Host: GitHub
- URL: https://github.com/nrkn/doom-wad
- Owner: nrkn
- Created: 2016-02-23T02:21:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-06T21:24:53.000Z (about 9 years ago)
- Last Synced: 2025-01-26T18:37:03.161Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# doom-wad
## Read data out of a DOOM WAD
`npm install doom-wad`
Tries to take a DOOM WAD (Heretic et al. not supported at present, PRs welcome)
and mangle it into something useful.Can handle most of the data used by DOOM and DOOM 2, see
[nlump](https://github.com/nrkn/nlump) for more details on which lumps are
supportedIt basically just uses nlump to convert the lumps, and tries to organise them
meaningfully, eg. grouping map lumps together etc.Known to work with DOOM and DOOM 2 IWADs, the handful of map-only PWADs I tried
also worked## Usage
```javascript
const fs = require( 'fs' )
const wad = require( 'doom-wad' )fs.readFile( 'doom.wad', ( err, buffer ) => {
const data = wad( buffer )
console.dir( data )
})```