static-js-yaml
Source transform static js-yaml expressions to remove yaml
Last updated 6 years ago by parshap .
Public Domain · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install static-js-yaml 
SYNC missed versions from official npm registry.

static-js-yaml

Source transform static js-yaml expressions to remove yaml.

Example

Source:

var yaml = require("static-js-yaml");
console.log(yaml.safeLoad("foo: 1"));
console.log(yaml.dump({foo: 1}));

Becomes:

console.log({ foo: 1 });

Usage

  1. Use the static-js-yaml module with statically-analyzable expressions in place of the js-yaml module.
  2. Use the js-yaml/transform module as a browserify transform to transform your source.

js-yaml/transform

API

static-js-yaml

A subset of the js-yaml API is exported: safeLoad, load, safeDump, dump (everything but multi-document loaders).

static-js-yaml/transform

The transform module is implemented as a browserify transform function but can be used directly without browserify.

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |