Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including r6operators with all npm packages installed. Try it out:

var r6operators = require("r6operators")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

r6operators v1.1.1

r6operators is a collection of high-quality vectorized Rainbow Six: Siege Operator icons & metadata for Node.js

r6operators Header Image

r6operators

GitHub last commit GitHub stars GitHub forks GitHub license

r6operators is a collection of high-quality vectorized Rainbow Six: Siege Operator icons & metadata for Node.js.

This project started as way for people to get high-resolution operator icons for Rainbow Six: Siege operators, especially as vector graphics gained popularity in web development in the recent years. All icons have been remade by hand and they got the same aspect ratio & alignment for more consistent usage.

Note: This project is the successor of r6-operatoricons and the old repo was repurposed to the website, please send any icon requests or issues with the package in this repo only.

https://r6operators.marcopixel.eu/

npm install r6operators

Usage

1. Install

Install the package with npm:

npm install r6operators
2. Require it
const r6operators = require("r6operators");

import r6operators from "r6operators"; // ES6 imports
3. Use it
const r6operators = require("r6operators");

r6operators.alibi;
// {
//   id: 'alibi',
//   name: 'Alibi',
//   role: 'Attacker',
//   unit: 'GIS',
//   ratings: { armor: 1, speed: 3, difficulty: 3 },
//   meta: { sex: 'f', country: 'it', season: 'Y3S2', height: 171, weight: 63
// },
//   bio: { real_name: 'Aria de Luca', birthplace: 'Tripoli, Lybia' },
//   svg: {
//     contents: [SVG Contents],
//     attributes: {
//       xmlns: 'http://www.w3.org/2000/svg',
//       viewBox: '0 0 466.667 466.667',
//       class: 'r6operators r6operators-alibi'
//     }
//   },
//   toSVG: [Function]
// }

r6operators.alibi.toSVG();
// <svg class="r6operators r6operators-alibi" ... >...</svg>

r6operators.alibi.toSVG({ class: "large", "stroke-width": 2, color: "red" });
// <svg class="r6operators r6operators-alibi large" stroke-width="2" color="red" ... >...</svg>

You can also access the optimized SVG & PNG icons directly from node_modules\r6operators\lib\icons if you desire.

Reference

r6operators.[name]

An object containing all data about the operator, including icons.

Note: The operator name alibi found in the example can be replaced with all operators. You can find the correct names in the operators.json file. Keep in mind that the properties bio, meta and ratings are not available on recruits.

Example:
r6operators.alibi;
// {
//   id: 'alibi',
//   name: 'Alibi',
//   role: 'Attacker',
//   unit: 'GIS',
//   ratings: { armor: 1, speed: 3, difficulty: 3 },
//   meta: { sex: 'f', country: 'it', season: 'Y3S2', height: 171, weight: 63
// },
//   bio: { real_name: 'Aria de Luca', birthplace: 'Tripoli, Lybia' },
//   svg: {
//     contents: [SVG Contents],
//     attributes: {
//       xmlns: 'http://www.w3.org/2000/svg',
//       viewBox: '0 0 466.667 466.667',
//       class: 'r6operators r6operators-alibi'
//     }
//   }
//   toSVG: [Function]
// }

r6operators.alibi.unit.toString();
// GIS

r6operators.[name].toSVG([attrs])

Returns an SVG string of the operator icon.

Parameters

NameTypeDescription
attrs (optional)ObjectKey-value pairs in the attrs object will be mapped to HTML attributes on the <svg> tag (e.g. { foo: 'bar' } maps to foo="bar"). All default attributes on the <svg> tag can be overridden with the attrs object.
r6operators.alibi.toSVG();
// <svg class="r6operators r6operators-alibi" ... >...</svg>

r6operators.alibi.toSVG({ class: "large" });
// <svg class="r6operators r6operators-alibi large" ... >...</svg>

r6operators.alibi.toSVG({ "stroke-width": 2, color: "red" });
// <svg class="r6operators r6operators-alibi" stroke-width="2" color="red" ... >...</svg>

Contributing

For more info on how to contribute please see the contribution guidelines.

Caught a mistake or want to contribute to the documentation? Edit this page on Github

Credits

  • @colebemis for his work on feather, which gave me an awesome reference for this project.
  • @dtSniper for creating the IQ, Thatcher, Fuze, Glaz, Bandit, Kapkan, Tachanka, Pulse, Sledge and Doc icons.
  • @joeyfjj for creating the Goyo, Mute, Smoke, Jäger and Blitz icons.
  • @LaxisB & @NaughtyMuppet for general help on this project. <3

License

r6operators is licensed under the MIT License.

This project is not affiliated with Ubisoft Entertainment. Tom Clancy’s, Rainbow Six, The Soldier Icon, Ubisoft and the Ubisoft logo are trademarks of Ubisoft Entertainment.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free