pretty-data

WebJar for pretty-data

License

License

MIT
Categories

Categories

Data
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

pretty-data
Last Version

Last Version

0.40.0
Release Date

Release Date

Type

Type

jar
Description

Description

pretty-data
WebJar for pretty-data
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/vkiryukhin/pretty-data

Download pretty-data

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/pretty-data/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>pretty-data</artifactId>
    <version>0.40.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/pretty-data/
implementation 'org.webjars.npm:pretty-data:0.40.0'
// https://jarcasting.com/artifacts/org.webjars.npm/pretty-data/
implementation ("org.webjars.npm:pretty-data:0.40.0")
'org.webjars.npm:pretty-data:jar:0.40.0'
<dependency org="org.webjars.npm" name="pretty-data" rev="0.40.0">
  <artifact name="pretty-data" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='pretty-data', version='0.40.0')
)
libraryDependencies += "org.webjars.npm" % "pretty-data" % "0.40.0"
[org.webjars.npm/pretty-data "0.40.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

pretty-data - Nodejs plugin

nodejs plugin to pretty-print or minify text in XML, JSON, CSS and SQL formats.

Version - 0.50.0

Copyright (c) 2012 Vadim Kiryukhin ( vkiryukhin @ gmail.com )

Home page: http://www.eslinstructor.net/pretty-data/

License: Dual licensed under the MIT and GPL licenses:

http://www.opensource.org/licenses/mit-license.php

http://www.gnu.org/licenses/gpl.html

##Description

  • pd.xml(data ) - pretty print XML;

  • pd.json(data) - pretty print JSON;

  • pd.css(data ) - pretty print CSS;

  • pd.sql(data ) - pretty print SQL;

  • pd.xmlmin(data [, preserveComments]) - minify XML;

  • pd.jsonmin(data) - minify JSON text;

  • pd.cssmin(data [, preserveComments] ) - minify CSS text;

  • pd.sqlmin(data) - minify SQL text;

PARAMETERS:

@data - String; XML, JSON, CSS or SQL text to beautify;

@preserveComments - Bool (optional, used in npp.minxml and npp.mincss only); Set this flag to true to prevent removing comments from @data;

@Return - String;

USAGE:

var pd = require('pretty-data').pd;

var xml_pp = pd.xml(data);

var xml_min = pd.xmlmin(data [,true]);

var json_pp = pd.json(data);

var json_min = pd.jsonmin(data);

var css_pp = pd.css(data);

var css_min = pd.cssmin(data [, true]);

var sql_pp = pd.sql(data);

var sql_min = pd.sqlmin(data);

Versions

Version
0.40.0