GithubHelp home page GithubHelp logo

atomium's Introduction

Atomium

Atomium is pure JavaScript parser for Node.js

If you want to try the module or contribute improving it, you are welcome.

Usage

var Atomium = require('./lib/Atomium'),feed;

feed = new Atomium(data); //data is actualy the Atom string we want to parse
//initialize and parse the atom feed 
feed.init();

At this stage the module supports the following methods:

init()

Use this method after every creation of "new Athomium(data)" in order to initialize the parser and parse the Atom data. Returns nothing.

getFeedId()

returns an object* that has the ID of the Atom feed.

getFeedTitle()

returns an object* that has the Title of the Atom feed.

getFeedSubtitle()

returns an object* that has the Subtitle of the Atom feed.

getFeedLinks()

returns an array** of objects that has the Link element of the Atom feed.

getFeedLogo()

returns an object* that has the logo url of the Atom feed.

getFeedUpdated()

returns an object* that has the last time the feed was modified of the Atom feed.

getFeedAuthors()

returns an array** of objects that has the author information.

getFeedGenerator()

returns the feed generator object*.

getFeedCategories()

returns an array** of objects that have the feed category.

getFeedContributors()

returns an array** of objects that have the feed contributors.

getFeedIcon()

returns icon image object* that provides visual identification for the feed.

getFeedRights()

returns object* that holds information about the rights held in and over the feed.

getFeedExtensionElements()

returns array** of all extension elements of the feed.

getFeedEntries()

returns an array** of all feed entries.

*

Returned single object looks like this:

{ name : "element name",
    attributes : {}
    children [
        { name : "elem", attributes : {att:'val1'}, children [] },
        { name : "elem", attributes : {att:'val1'}, children [] },
        { name : "elem", attributes : {att:'val1'}, children [] }
    ]
}

**

The arrays have 0..n number of objects discribed before.

TODO

  • Entry parser
  • โ€ฆ.

atomium's People

Contributors

m1ci avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.