2.1.6 • Published 6 years ago

blast-vanilla v2.1.6

Weekly downloads
22
License
MIT
Repository
github
Last release
6 years ago

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

Quickstart

npm install blast-vanilla
import Blast from 'blast-vanilla'

new Blast('.selector', { /* options */ })

API

Options:

new Blast('.selector', {
    returnGenerated: true,      
    delimiter: 'word',          // separate according to this delimiter
                                // 'character', 'word', 'sentence', or 'element'
    tag: 'span',                // wrapper for separated elements
    search: false,              // value to search for and wrap
    customClass: '',            // class to attach to wrappers
    aria: true,                 // generate aria attributes to keep accessibility
    debug: false,               // print extra debug info

    // new options for vanilla version
    name: '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).

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago