keithwhor / NtSeq

JavaScript (node + browser) bioinformatics library for nucleotide sequence manipulation and analysis.
MIT License
208 stars 25 forks source link

UMDified NtSeq so it doesn't require two different versions in the repo #11

Open AABoyles opened 6 years ago

AABoyles commented 6 years ago

I noticed that the browser version is literally the same as the node version, except for the extra void function at the end of the node version. I find tracking multiple versions of a file to be needlessly confusing, so I used the UMD template to make a version that works in both environments, while preserving the extra functionality in Node. To keep the whole directory structure with as little impact as possible, I simply replaced the web/ntseq.js file with a symbolic link to the lib/nt.js file, which now loads flawlessly in-browser.