Node.js Build Status

More examples and additional documentation for the Node.js library can be found on GitHub at: https://github.com/imgix/imgix-core-js.

Example

var ImgixClient = require('imgix-core-js');

var client = new ImgixClient({
  host: "my-social-network.imgix.net",
  secureURLToken: "<SECURE TOKEN>"
});
var url = client.buildURL("/path/to/image.png", { w: 400, h: 300 });
console.log(url); // => "https://my-social-network.imgix.net/users/1.png?w=400&h=300&s=…"

More tools