All Projects → jonschlinkert → read-yaml

jonschlinkert / read-yaml

Licence: MIT license
Very thin wrapper around js-yaml for directly reading in YAML files.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to read-yaml

python-yamlable
A thin wrapper of PyYaml to convert Python objects to YAML and back
Stars: ✭ 28 (+12%)
Mutual labels:  yaml, file
Rustbreak
A simple, fast and easy to use self-contained single file storage for Rust
Stars: ✭ 315 (+1160%)
Mutual labels:  yaml, file
write-yaml
Basic node.js utility for converting JSON to YAML and writing formatting YAML files to disk.
Stars: ✭ 38 (+52%)
Mutual labels:  yaml, file
NextCommunity.github.io
Join FREE: Community of open-source programmers and software engineers.
Stars: ✭ 29 (+16%)
Mutual labels:  yaml
pyladies-courseware
Homework/task submit and review web app · based on React and Python aiohttp
Stars: ✭ 14 (-44%)
Mutual labels:  yaml
file-vault
A Laravel package for encrypting and decrypting files of any size
Stars: ✭ 152 (+508%)
Mutual labels:  file
csvy
Import and Export CSV Data With a YAML Metadata Header
Stars: ✭ 52 (+108%)
Mutual labels:  yaml
safe-svg
Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.
Stars: ✭ 129 (+416%)
Mutual labels:  file
SimpleStorage
💾 Simplify Android Storage Access Framework for file management across API levels.
Stars: ✭ 498 (+1892%)
Mutual labels:  file
flutter plus
Develop applications in Flutter more quickly and easily. Customize Containers, Buttons, Texts and TextFields in a few lines. Navigate between Screens and open BottomSheets, Dialogs and Snackbars without context from any point.
Stars: ✭ 17 (-32%)
Mutual labels:  yaml
gologger
A concurrent, fast queue/service worker based filesystem logging system perfect for servers with concurrent connections
Stars: ✭ 16 (-36%)
Mutual labels:  file
inplace
In-place file processing in Python
Stars: ✭ 21 (-16%)
Mutual labels:  file
KaiZen-OpenApi-Parser
High-performance Parser, Validator, and Java Object Model for OpenAPI 3.x
Stars: ✭ 119 (+376%)
Mutual labels:  yaml
Clash
clash配置文件,基于ACL4SSR以及blackmatrix7修改
Stars: ✭ 53 (+112%)
Mutual labels:  yaml
yamlfmt
A simple opionated yaml formatter that keeps your comments!
Stars: ✭ 27 (+8%)
Mutual labels:  yaml
gitlab-configuration-as-code
Manage GitLab configuration as code to make GitLab easily managable, traceable and reproducible.
Stars: ✭ 31 (+24%)
Mutual labels:  yaml
file-icon-cli
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 73 (+192%)
Mutual labels:  file
scout
Reading and writing in JSON, Plist, YAML and XML data made simple when the data format is not known at build time. Swift library and command-line tool.
Stars: ✭ 110 (+340%)
Mutual labels:  yaml
gosearch
a fast, real-time file searching program for linux
Stars: ✭ 68 (+172%)
Mutual labels:  file
tdiff
CLI tool for comparing tree like structures
Stars: ✭ 20 (-20%)
Mutual labels:  yaml

read-yaml NPM version NPM monthly downloads NPM total downloads Linux Build Status

Very thin wrapper around js-yaml for directly reading in YAML files.

Install

Install with npm:

$ npm install --save read-yaml

API

readYaml

Read yaml file asynchronously and parse content as JSON.

Params

  • filepath {String}: Path of the file to read.
  • options {Object|String}: to pass to js-yaml
  • cb {Function}: Callback function `

Example

var readYaml = require('read-yaml');
readYaml('config.yml', function(err, data) {
  if (err) throw err;
  console.log(data);
});

.sync

Read yaml file synchronously and parse content as JSON.

Params

  • filepath {String}: Path of the file to read.
  • options {Object|String}: to pass to js-yaml.
  • returns {Object}: JSON

Example

var read = require('read-yaml');
var config = read.sync('config.yml');

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Contributors

Commits Contributor
15 shinnn
10 jonschlinkert

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

$ npm install && npm test

Author

Jon Schlinkert

License

Copyright © 2017, Jon Schlinkert. Released under the MIT License.


This file was generated by verb-generate-readme, v0.4.3, on April 02, 2017.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].