npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ng-webodf

v0.0.1

Published

Angular WebODF

Downloads

4

Readme

Angular WebODF

This is the Angular directive for WebODF. Demo page is available here.

How to use

  1. Get Angular
  2. Get WebODF by running:
gulp webodf

You will have webodf.js in vendor/webodf/ directory. You can specify the WebODF version in gulpfiles.js. Otherwise you can download it manually from it's site.

  1. Get Angular WebODF directive:
bower install angular-webodf

Copy dist/angular-webodf.js to your working directory.

  1. Put together an HTML file:
<script type="text/javascript" src="angular.js"></script>
<script type="text/javascript" src="webodf.js"></script>
<script type="text/javascript" src="angular-webodf.js"></script>

...
<webodf url="file.odt" name="odf"></webodf>

Attributes

url: This contains the url of the ODF document you're opening using the directive.

name: This specifies the name of the directive. You should use different name if you have more than one directives.

readonly: This specifies that the document you're loading is read only. No editor is going to be present.

Building

If you're missing something in this directive, you're free to help out. By having a basic bower and gulp skill, you can easily build the project.

Installation

npm install
bower install

Building the directive

gulp src

You will get the dist directory containing ready to use angular-webodf.js.

Building demo site

gulp demo

You will get the demo directory which you can try by running it in a web server in demo directory.

License

MIT (c) 2014, Mohammad Anwari

"But WebODF is AGPL!", yes it is, but it has an exception to the license:

As a special exception to the AGPL, any HTML file which merely makes function calls to this code, and for that purpose includes it in unmodified form by reference or in-line shall be deemed a separate work for copyright law purposes.