node-paperclip-mock-file-system
This is a npm module that is meant to make testing parts of node-paperclip easier without having to configure a file system and read files all the time. Maybe this is a good idea, maybe it isn't.
npm install node-paperclip-mock-file-system --save
Here is an example of a model that uses the mongoose plugin.
const mongoose = ;const Schema = mongooseSchema;const Paperclip = ; const ProfileImage = user_id: type: SchemaTypesObjectId ref: 'User' username: String; ProfileImage moduleexports = mongoose;
Contributing
If you'd like to contribute a feature or bugfix: Thanks! To make sure your fix/feature has a high chance of being included, please read the following guidelines:
- Post a pull request.
- Make sure there are tests! We will not accept any patch that is not tested. It's a rare time when explicit tests aren't needed. If you have questions about writing tests for paperclip, please open a GitHub issue.
And once there are some contributors, then I would like to thank all of the contributors!
License
It is free software, and may be redistributed under the terms specified in the MIT-LICENSE file.
Copyright
© 2017 Scott Ballantyne. See LICENSE for details.