csv-to-rewrite
Convert CSV to URL rewrites
Last updated 4 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install csv-to-rewrite 
SYNC missed versions from official npm registry.

csv-to-rewrite

Convert CSV to URL rewrites

Install

$ npm install --save csv-to-rewrite

Usage

const csvToRewrite = require('csv-to-rewrite');

csvToRewrite('name,from,to\nUnicorns,http://foo.com,http://bar.com').then(data => {
	console.log(data[0]);
	/*
		<rule>
			<name>Unicorns</name>
			<from>http://foo.com</from>
			<to>http://bar.com</to>
		</rule>
	 */
});

CLI

$ npm install --global csv-to-rewrite
$ csv-to-rewrite --help

  Example
    $ csv-to-rewrite --out unicorn.xml unicorn.csv
    $ cat unicorn.csv | csv-to-rewrite > unicorn.xml

License

MIT © Kevin Martensson

Current Tags

  • 1.2.0                                ...           latest (4 years ago)

6 Versions

  • 1.2.0                                ...           4 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (7)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |