CS:Source setup on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const UNITS = [ | |
| { | |
| multiplier: 1000, | |
| name: 'second', | |
| threshold: 45, | |
| }, | |
| { | |
| multiplier: 60, | |
| name: 'minute', | |
| threshold: 45, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { strict as assert } from 'node:assert' | |
| import fs from 'node:fs' | |
| import path from 'node:path' | |
| import { afterEach, beforeEach, describe, it } from 'node:test' | |
| import { Readable } from 'node:stream' | |
| import { findInStream as _find } from './src/utils/findInStream' | |
| const findInStream = (pathname: string, search: string) => { | |
| return _find(Readable.toWeb(fs.createReadStream(pathname)), search) |
OlderNewer