Skip to content

Repository files navigation

Vanilla version of Blast.js. Blast text apart to make it manipulable.

Quickstart

npm install blast-vanilla
importBlastfrom'blast-vanilla'newBlast('.selector',{/* options */})

API

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,})

Original Docs

velocityjs.org/blast/

Credits

Based on Blast.js, originally developed by Julian Shapiro.

====

MIT License. © Julian Shapiro (http://twitter.com/shapiro).

About

Blast text apart to make it manipulable.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages