Adds CLI example in README
parent
146ea58ad8
commit
46197365d0
22
README.md
22
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
|
||||
<?xml version="1.0"?>
|
||||
<metadata>
|
||||
<dc:identifier opf:scheme="ISBN-13">9780596101190</dc:identifier>
|
||||
<dc:identifier opf:scheme="ISBN-10">0596101198</dc:identifier>
|
||||
<dc:creator opf:role="aut">Dan Woods</dc:creator>
|
||||
<dc:creator opf:role="aut">Gautam Guliani</dc:creator>
|
||||
<dc:title id="title">Open Source for the Enterprise</dc:title>
|
||||
<dc:title id="subtitle">Managing Risks, Reaping Rewards</dc:title>
|
||||
<meta refines="#subtitle" property="title-type">subtitle</meta>
|
||||
<dc:language>eng</dc:language>
|
||||
<dc:publisher>O'Reilly Media, Inc.</dc:publisher>
|
||||
</metadata>
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Licensed under the [MIT License](https://nemo.mit-license.org/). See LICENSE file for details.
|
||||
|
|
Loading…
Reference in New Issue