Vanilla version of Blast.js. Blast text apart to make it manipulable.
npm install blast-vanillaimportBlastfrom'blast-vanilla'newBlast('.selector',{/* options */})Options:
newBlast('.selector',{returnGenerated: true,delimiter: 'word',// separate according to this delimiter// 'character', 'word', 'sentence', or 'element'tag: 'span',// wrapper for separated elementssearch: false,// value to search for and wrapcustomClass: '',// class to attach to wrappersaria: true,// generate aria attributes to keep accessibilitydebug: false,// print extra debug info// new options for vanilla versionname: 'blast'// root elements will be called '${ name }-root'// present in original Blast.js, not yet supported in vanilla// generateIndexID: false,// generateValueClass: false,// stripHTMLTags: options.stripHTMLTags || false,})Based on Blast.js, originally developed by Julian Shapiro.
====
MIT License. © Julian Shapiro (http://twitter.com/shapiro).