knewjade / fumen-for-mobile-ts

Tetris diagram editor for mobile
https://knewjade.github.io/fumen-for-mobile/
MIT License
18 stars 1 forks source link

Extract fumen encoder/decoder to a separated package? #2

Closed eight04 closed 4 years ago

eight04 commented 4 years ago

It seems that two files share similar code: https://github.com/knewjade/fumen-preview-extension/blob/master/src/fumen/fumen.ts https://github.com/knewjade/fumen-for-mobile-ts/blob/master/src/lib/fumen/fumen.ts

Is it possible to publish a package containing only the core algorithm to npm so users can use it without copy-paste? I'd like to create a tool that can convert fumen data into SVG images.

knewjade commented 4 years ago

Probably yes. I have never make npm package, so I was procrastinating it. I will create a new repository for npm, so please give me a few days.

eight04 commented 4 years ago

Found a site which also uses fumen: https://github.com/davdav1233/tetris/blob/3244fb84561d77a7a05e25e1ca33d5701ef183f4/src/lib/fumen/fumen.ts

@davdav1233

knewjade commented 4 years ago

@eight04 I created new npm module: https://www.npmjs.com/package/tetris-fumen This module includes a decoder/encoder and a simple field manipulation library now. If you have any problems or requests, please contact the following repository. https://github.com/knewjade/tetris-fumen

thank you for your request.