Web API

Basic url structure https://forcemipsum.com/api/content/count/

Possible content: Episodes, Characters, Places

Episodes

1, 2, 3, 4, 5, 6, 7, 8, 9

https://forcemipsum.com/api/episode-4/5/

https://forcemipsum.com/api/4/10/

Characters

https://forcemipsum.com/api/characters/5/

Places

https://forcemipsum.com/api/places/5/

Javascript / Typescript

forcem(content: string, count: number);

Deno Module

The Deno module is located at https://deno.land/x/forcemipsum.

import { forcem } from "https://deno.land/x/forcemipsum/mod.ts";
const example = forcem('episode 4', 5);
console.log(example);

NPM Package

The NPM package is located at https://www.npmjs.com/package/forcem-ipsum.

npm i forcem-ipsum

var forcem = require('forcem');
const example = forcem('episode 4', 5);
console.log(example);