add support for component(1)

Based on node.js plugin