1.2.0 • Published 8 years ago

csv-to-rewrite v1.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

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

1.2.0

8 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago