subtlepatterns
v0.0.4
Published
Get meta and download all patterns from subtlepatterns.com
Downloads
2
Maintainers
Readme
Subtle patterns download tool
Just a simple tool that can:
- get actual patterns meta in JSON format from subtlepatterns website
- download the patterns, unpack them and generate meta file with files and palette information.
The patterns are under CC BY-SA 3.0 license. So play nicely and leave a credit when you use them. The generated meta files contain the meta from the website (author and link (if any), as well as description)
Read FAQ at subtlepatterns.com for more.
Usage
To use as a lib (why would you need that? Whatever...) you can simply require
the package (there is a bin.js
file,
see it for usage example). The methods the lib exposes are promise-based, but the API may be imperfect...
To download the patterns (files) and build JSON with meta - install package globally via npm
(npm install -g subtlepatterns
) and run subtlepatterns
in command line under any directory you have write access -
and the files should be downloaded to patterns
directory under current working directory.
Adding a --colors
parameter will also download palette for the colors.
List
Completely different mode is running subtlepatterns list
- it will simply skim through all the patterns pages, grab
the meta and output it as array into stdout.
Of course, you can pipe the output via something like subtlepatterns list > patterns.json
.