Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pilskalns/nexrender-action-template-unzip
https://github.com/pilskalns/nexrender-action-template-unzip
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pilskalns/nexrender-action-template-unzip
- Owner: Pilskalns
- Created: 2021-07-07T11:17:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T09:03:44.000Z (over 2 years ago)
- Last Synced: 2024-04-26T17:23:25.448Z (8 months ago)
- Language: JavaScript
- Size: 78.1 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nexrender-action-template-unzip
## Install
`npm install nexrender-action-template-unzip@latest`
## How to use
1. Send .ZIP file as the source instead of AE project in the `template.src` value
2. Add this module in pre-render actions, no parameters needed```json
{
"template": {
"src": "https://example.com/ae-template-in-the.zip",
"composition": "my_composition"
},
"assets": [],
"actions": {
"prerender": [
{
"module": "nexrender-action-template-unzip"
}
]
}
}```
## Notes
* If source extensions is not a .ZIP, then any action will be skipped - safe to use with mixed content
* If the ZIP does NOT contain any .aep file, `reject` will be returned with an error message
* If there are multiple .aep files, the first found will be used (keep things tidy and don't use multiple .aep files inside a ZIP)
* If action is used in POST-render, `reject` will be returned with an error message
* If using multiple pre-render actions - might need to put this as a first## Changes:
* 0.0.2 - Fix bug unzip not working when link is not http/s
* 0.0.3 - Use central logger instance
* 1.0.3 - Version bump to keep semver happy
* 1.0.4
* Use console as logger fallback
* Added testing with Jest
* Bump adm-zip dependency version
* 1.1.0 - Feature - ignore AE auto save .aep files when looking for template