Coder Social home page Coder Social logo

stringviz's Introduction

Welcome to StringViz

StringViz is a little tool to visualize positions of a string.

StringViz will save you some time when parsing data, scraping a website or analyzing xml.

Demo

This code creates the following output.

StringViz.visualize(
    '<img src="/path/to/image.png" width="40px" />',
    [
        { 'position': 10, 'text': 'Start'},
        { 'position': 28, 'text': 'End'}
    ]
);

StringViz.visualize(
    'The product "NameABC" is $99.99',
    [
        { 'position': 13, 'text': 'p1'},
        { 'position': 20, 'text': 'p2'},
        { 'position': 26, 'text': 'p3'},
        { 'position': 31, 'text': 'p4'}
    ]
);

Output

Download

Just download all three files. jQuery is required.

Contributing

Anyone and everyone is welcome to contribute.

Author

Twitter: @ThimoKl

stringviz's People

Contributors

thimokl avatar

Stargazers

Michael Anthony avatar Oğuz Çelikdemir avatar Cheng Lou avatar  avatar NguyenHuu AnhVu avatar Jaeho Lee (Jay) avatar Long Nguyen avatar David Moore avatar Tom Carlson avatar Joël Thieffry avatar Kostas Nasis avatar Mufid avatar John Whitley avatar Alfonso Roman avatar  avatar Cameron avatar Lukas Werling avatar Jasdev Singh avatar  avatar Gabriel avatar Abhishek Das avatar  avatar Pascal Jürgens avatar Harald Kirkerød avatar Cory Gross avatar will Farrell avatar Tim Helfensdörfer avatar Dario Barilà avatar

Watchers

Michael Van Veen avatar James Cloos avatar Michael Anthony avatar  avatar  avatar

Forkers

manojlds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.