1.0.0 • Published 11 years ago
static-js-yaml v1.0.0
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
- Use the
static-js-yamlmodule with statically-analyzable expressions in place of thejs-yamlmodule. - Use the
js-yaml/transformmodule 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.
1.0.0
11 years ago