Parse and format multiple data serialization types.

WARNING: This project has been rewritten to @alinex/datastore. Install using @alinex/datastore instead.
Last updated 3 years ago by alinex .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install alinex-format 
SYNC missed versions from official npm registry.

Alinex Format: Readme

GitHub watchers

GitHub stars GitHub forks

npm package latest version

Travis status Coveralls status Gemnasium status GitHub issues

This package will give you an easy way to serialize and deserialize different data objects into multiple formats.

The major features are:

  • easy to use
  • load format libraries on demand
  • auto detection

It is one of the modules of the Alinex Namespace following the code standards defined in the General Docs.

Read the complete documentation under


NPM Downloads

The easiest way is to let npm add the module directly to your modules (from within you node modules directory):

npm install alinex-format --save

And update it to the latest version later:

npm update alinex-format --save

Always have a look at the latest changes.


To use the format you have to load the module first:

format = require 'alinex-format'

This gives you back the main format instance which holds two methods to use:


Serialize data object into string.


  • obj object to be formatted
  • format format to use or filename to read format from
  • options (optional) specific for the format
  • cb callback will be called with (err, text)


Try to parse object from string. Auto detect if no format is given.


  • string text to be parsed
  • format (optional) format to use or filename to read format from
  • cb callback will be called with (err, object)


(C) Copyright 2016 Alexander Schilling

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Current Tags

  • 1.2.0                                ...           latest (3 years ago)

4 Versions

  • 1.2.0 [deprecated]           ...           3 years ago
  • 1.1.5 [deprecated]           ...           4 years ago
  • 1.1.4 [deprecated]           ...           4 years ago
  • 1.1.3 [deprecated]           ...           4 years ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (3)

Copyright 2014 - 2016 © |