CLI for Oblique Strategies.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
284 B

  1. import { readFile } from 'fs/promises';
  2. // input is without the prefix
  3. export const read = async (input: string) => {
  4. const buffer = await readFile(input);
  5. const contents = buffer.toString('utf-8');
  6. return contents.split('\n\n');
  7. };
  8. export const prefix = 'file:///' as const;