Giter Site home page Giter Site logo

yord / pxi-dust Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 5.52 MB

๐Ÿงš:sparkles:pxi-dust is a plugin with basic operations for pxi (pixie), the small, fast, and magical command-line data processor.

License: MIT License

JavaScript 100.00%
pxi pixie json csv ssv tsv dsv data-processing deserializer parser serializer marshaller

pxi-dust's Introduction

pxi-dust teaser

๐Ÿงš:sparkles:pxi-dust is a plugin with basic operations for pxi (pixie), the small, fast, and magical command-line data processor.

See the pxi github repository for more details!

node version npm version license PRs Welcome linux unit tests status macos unit tests status windows unit tests status

Installation

๐Ÿ‘Œ pxi-dust comes preinstalled in pxi. No installation necessary. If you still want to install it, proceed as described below.

pxi-dust is installed in ~/.pxi/ as follows:

npm install pxi-dust

The plugin is included in ~/.pxi/index.js as follows:

const dust = require('pxi-dust')

module.exports = {
  plugins:  [dust],
  context:  {},
  defaults: {}
}

For a much more detailed description, see the .pxi module documentation.

Extensions

This plugin comes with the following pxi extensions:

Description
line chunker Divides data on line breaks. A lot of data formats like CSV, TSV, and JSON line build on this separation.
map applier Applies pxi's functions to each individual line. Always returns a single result, unless an error is thrown during function application.
flatMap applier Applies pxi's functions to each individual line. May return any number of results, including none, thus being able to change the length of a file.
filter applier Treats pxi's functions as a conjunction of predicates and applies it to each individual line. If any predicate is false, the line is dropped, if all predicates return true, the line is kept.
string serializer Serializes each transformed JSON into a string separated by newlines.

Reporting Issues

Please report issues in the tracker!

License

pxi-dust is MIT licensed.

pxi-dust's People

Contributors

yord avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.