0.1.0 • Published 2 years ago
scp-core v0.1.0
scp-core
import Branch from 'scp-core/Branch';
const branch = Branch.get('en-us');
branch.series().then((series) => {
series[0].objects().then(async (objects) => {
const scp009 = objects.find((object) => object.title == 'Red Ice');
console.log(`${scp009.uri} - ${scp009.title} [rating: ${await scp009.rating}] (tags: ${(await scp009.tags).map((tag) => tag.title).join(', ')})`);
});
});
Author: Nikita Podvirnyy
Licensed under GNU GPL-3.0
0.1.0
2 years ago