Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Curtail is a simple browser based image manipulation library. Currently the only functionality offered by Curtail is cropping but more functionality is coming soon.
Curtail is a simple browser based image manipulation library. Currently the only functionality offered by Curtail is cropping but more functionality is coming soon.
To use Curtail, you can install it from npm and import it into your project.
$ npm install --save curtail
import { Curtail } from './node_modules/curtail/curtail.js';
const curtail = new Curtail();
or you can just download the curtail.js
file and import as above, just from a different directory.
The crop function in Curtail takes an image and a set of options as parameters. The image provided must be from a local source and the options will default to 0 if not specified
const options = {
locX: 50, // The x position in the original image to begin cropping.
locY: 75, // The y position in the original image to being cropping.
size: '350x500' // The dimension to crop out of the original image beginning at the starting location.
};
const croppedImage = await Curtail.crop('./images/placeholder.png', options);
// Returns an image element with the newly cropped image.
## License
MIT
0.1.0
FAQs
Curtail is a pure JavaScript image manipulation tool.
The npm package curtail receives a total of 3 weekly downloads. As such, curtail popularity was classified as not popular.
We found that curtail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.