csfiles
v0.0.1
Published
Node.js package for read and update Counter-Strike 1.6 files.
Downloads
2
Readme
csfiles
Node.js package for read and update Counter-Strike 1.6 files.
Prerequisites
Installation
npm install csfiles
Example
const CSFiles = require('csfiles');
const csfiles = new CSFiles({
hldsPath: 'C:/Users/giovani/Desktop/hlds.lnk',
mapsPath: 'C:/Users/giovani/Desktop/Counter-Strike 1.6/cstrike/maps',
mapsFilter: 'fy_',
mapsCyclePath: 'C:/Users/giovani/Desktop/Counter-Strike 1.6/cstrike/mapcycle.txt',
cfgPath: 'C:/Users/giovani/Desktop/Counter-Strike 1.6/cstrike/server.cfg',
});
(async () => {
const cfg = await csfiles.cfg();
console.log(cfg);
const mapsCycle = await csfiles.mapsCycle();
console.log(mapsCycle);
})();