jbenet / transformer

transformer - multiformat data conversion
transform.datadex.io
130 stars 7 forks source link

Simplified names #5

Closed jbenet closed 10 years ago

jbenet commented 10 years ago

Would be nice to be able to use super simple names, like unix-time and iso-date to refer to unix-time-date-codec and iso-date-codec.

This

transform unix-time iso-date
transform us-street-address us-city

is nicer than

transform unix-time-date-codec iso-date-codec
transform us-street-address-type us-city-type

It may be worth removing the -type suffix from all types. Basically everything is a type, unless it looks like -codec or <type>-to-<type>. Then the codecs can be referenced by creating an implicit type for any existing codec.

jbenet commented 10 years ago

Removed naming convention for Codecs and Types. Conversions still <type-id>-to-<type-id>. This is a lot nicer, and should be fine.

> echo 1398810849 | transform unix-time iso-date
2014-04-29T22:34:09.000Z