Skip to content

generate fen strings for every move in pgn-parser output

License

Notifications You must be signed in to change notification settings

kevinludwig/fenify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fenify

Generate FEN strings for every position in pgn-parser output, e.g. for building PGN web player using a UX library such as chessboard.js.

Build

  • Build distribution npm run dist
  • Run tests npm test

Usage


import fenify from 'fenify';
import pgnParser from 'pgn-parser';

fs.readFile('some.pgn', 'utf-8', (err, data) => {
    const [game] = pgnParser.parse(data);
    console.log(fenify(game));
});

About

generate fen strings for every move in pgn-parser output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published