Giter VIP home page Giter VIP logo

meteor-yaml's Introduction

YAML

This smart package lets you parse and generate YAML within a meteor app. It will also automatically load all .yaml files in your project, parse them into javascript objects, and make them available at YAML.data.

It is based on yaml.js by jeremyfa.

Installation

mrt add yaml

Usage

YAML.parse(text);

Parses the YAML given by text and returns it as a javascript object.

YAML.stringify(array, inline, spaces);

Attempts to return the given array as a yaml string.

Parameters:

  • inline: The level where you switch to inline YAML
  • spaces: The number of spaces used for indentation

meteor-yaml's People

Contributors

mtyeh411 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

meteor-yaml's Issues

Installing package crashes app

I'm really new to meteor, so I might be doing something wrong here.

I ran: mrt add yaml

And then started the project with: mrt

The app crashes with this message:

=> Errors prevented startup:
Exception while bundling application:
Error: Can't find npm module 'yamljs'. Did you forget to call 'Npm.depends'?
    at Object.self.npmFacade.require (/home/shido/.meteor/tools/cc18dfef9e/tools/packages.js:136:17)
    at /home/shido/code/voysee/web/voysee/packages/yaml/package.js:11:12
    at _.extend.initFromPackageDir (/home/shido/.meteor/tools/cc18dfef9e/tools/packages.js:175:5)
    at _.extend.initFromLocalPackages (/home/shido/.meteor/tools/cc18dfef9e/tools/packages.js:188:12)
    at Object._.extend.get (/home/shido/.meteor/tools/cc18dfef9e/tools/packages.js:350:17)
    at self.api.use (/home/shido/.meteor/tools/cc18dfef9e/tools/bundler.js:111:28)
    at Array.forEach (native)
    at Function._.each._.forEach (/home/shido/.meteor/tools/cc18dfef9e/lib/node_modules/underscore/underscore.js:78:11)
    at Object.self.api.use (/home/shido/.meteor/tools/cc18dfef9e/tools/bundler.js:110:9)
    at _.extend.init_from_app_dir [as on_use_handler] (/home/shido/.meteor/tools/cc18dfef9e/tools/packages.js:238:11)
    at _.extend.use (/home/shido/.meteor/tools/cc18dfef9e/tools/bundler.js:464:11)
    at Object.exports.bundle (/home/shido/.meteor/tools/cc18dfef9e/tools/bundler.js:873:12)
    at /home/shido/.meteor/tools/cc18dfef9e/tools/run.js:697:26
    at exports.inFiber (/home/shido/.meteor/tools/cc18dfef9e/tools/fiber-helpers.js:24:12)
=> Your application is crashing. Waiting for file change.

I opened yaml/package.js, and I can see you're calling Npm.depends prior to calling Npm.require('yamljs'). So I'm sure I'm just doing something wrong. Could you help me?

Error installing package

Just tried installing this package, and get this error with I ran mrt add yaml

=> Errors while scanning packages:

While building package yaml:
package.js:5:10: require is not defined

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.