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

iungo

v0.1.4

Published

Generate your pages like a champ with Iungo

Downloads

3

Readme

Iungo - Generate your pages like a champ with Iungo

npm version Dependency Status

Iungo Logo

Iungo is a simple and intuitive package that simplifies the process of making static web pages. It compiles all your pages generating a rich HTML file using:

  • Data JSON files that include all the data that you need inside your static website.
  • Partials Small portions of HTML that you can include inside your pages. Useful to avoid redundancy.
  • Helpers Javascript functions that, as the name says, help you in your project by providing useful code snippets that are usable straight from your partials and pages.

Iungo is a project mainly focused on helping you creating your web pages with reusable and easily maintainable components, avoiding redundancy and headaches.

Getting started

yarn add iungo --dev
or
npm install iungo --save-dev

How to use

Iungo takes as input a stream of HTML pages, injects them with Data, Partials and Helpers and after the compilation it returns your enriched pages.

import gulp from 'gulp';
import iungo from 'iungo';

gulp.task('default', function() {
    gulp.src('src/pages/**/*.html')
        .pipe(iungo({
            data: 'src/data',
            partials: 'src/partials',
            helpers: 'src/helpers'
        }))
        .pipe(gulp.dest('dist'));
});

To make sure that your compiled files are up to date with your changes, insert your task inside a gulp.watch function.

gulp.watch('./src/{ pages, data, partials, helpers }', ['default']);

Options

Iungo supports the following options:

Name|Type|Description ---|---|--- data|String or Array.<String>|The path to your data files.Data files contain the external data that you are using in your page, making consequent changes to such info much easier.Data files are stored inside .json files.Once you have them included they are accessible from every page of your project by using a variable with the same name as the data file name that you want to reference and by going down through it's structure using dot-notation. partials|String or Array.<String>|The path to your partials files.Partials are slices of HTML that will be used when included. They either have a .html, .hbs or .handlebars extension. The partials will be registered as Handlebars partials and will be usable in any page by including them using their name.e.g. a header.hbs partial can be included using {{header}} helpers|String or Array.<String>|The path to your helpers files.Helpers are .js files that contain a Handlebars partial. These files have to export a function that will be registered as a Handlebars helper which'll have the same name as the file that contained the helper.


Have fun with Iungo!

Made with plenty of ❤️ by two guys from the Aterrae team in Rubano (Padova), Italy

Copyright © 2017 Aterrae | Digital Growth.