0.0.3 • Published 5 years ago

fileable-iterator v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

fileable logo

Fileable Iterator

For use internally with fileable and components.

Installation

npm install fileable-iterator

API

Table of contents

function iterator

Iterator

ParameterTypeDescription
optionsobject
options.folder_contextstringFolder into which files should be rendered.
options.template_contextstringLocation of template. Used to determine relative relative paths of certain attributes.

Examples

import {iterator} from 'fileable';
const main = async ()=>{
 for await(const output of iterator(template, {})){
   console.log(output);
 }
}

Todo