From 46197365d07fbb5c9f6f5b48b0b7d2a11ec23572 Mon Sep 17 00:00:00 2001 From: Nemo Date: Mon, 10 Feb 2020 18:41:49 +0530 Subject: [PATCH] Adds CLI example in README --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 3809869..1b81e9c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,28 @@ const E = require('epub-metadata-generator') E.write(filepath, ISBN); ``` +Alternatively, you can use the provided command-line-executable: + +```sh +generate-epub-xml 9780596101190 /tmp/9780596101190.xml +cat /tmp/9780596101190.xml +``` + +```xml + + + 9780596101190 + 0596101198 + Dan Woods + Gautam Guliani + Open Source for the Enterprise + Managing Risks, Reaping Rewards + subtitle + eng + O'Reilly Media, Inc. + +``` + ## License Licensed under the [MIT License](https://nemo.mit-license.org/). See LICENSE file for details.