profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/sindresorhus/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Sindre Sorhus sindresorhus https://sindresorhus.com Full-Time Open-Sourcerer. Wants more empathy & kindness in open source. Focuses on Swift & JavaScript. Makes macOS apps, CLI tools, npm packages. Likes unicorns

addyosmani/critical 9060

Extract & Inline Critical-path CSS in HTML pages

addyosmani/a11y 1679

Accessibility audit tooling for the web (beta)

addyosmani/tmi 1655

TMI (Too Many Images) - discover your image weight on the web

bcoe/awesome-cross-platform-nodejs 936

:two_men_holding_hands: A curated list of awesome developer tools for writing cross-platform Node.js code

avajs/ava-docs 458

Localized docs for AVA

avajs/awesome-ava 322

Awesome AVA resources

fregante/github-issue-link-status 254

Colorize issue and PR links to see their status (open, closed, merged)

avajs/eslint-plugin-ava 214

ESLint rules for AVA

download-directory/download-directory.github.io 192

Web App: Download just a sub directory from a GitHub repo.

fregante/delegate-it 158

DOM event delegation, in <1KB

startedsindresorhus/alfy

started time in 2 minutes

startedsindresorhus/strip-json-comments

started time in 16 minutes

startedsindresorhus/awesome

started time in 17 minutes

startedsindresorhus/refined-github

started time in 19 minutes

startedsindresorhus/terminal-image

started time in 20 minutes

startedsindresorhus/Regex

started time in 21 minutes

startedsindresorhus/awesome

started time in 30 minutes

startedsindresorhus/alfy

started time in 30 minutes

startedsindresorhus/awesome

started time in an hour

startedsindresorhus/css-in-readme-like-wat

started time in an hour

startedsindresorhus/awesome

started time in an hour

push eventsindresorhus/refined-github

yakov116

commit sha 411597d6e2dd21da0330a4f64177f488330416a7

Update source/features/avoid-accidental-submissions.tsx Co-authored-by: Federico Brigante <me@fregante.com>

view details

push time in an hour

PR opened sindresorhus/unused-filename

Add options

Seeing as #8 is abandoned and I need it now, here is my polite takeover :)

Adds incrementer and maxTries options.

maxTries is Infinity by default.

If unusedFilename() reaches maxTries it returns last attempted filename.

incrementer is a (filename: string, extensions: string) => string function.

I've changed the incrementation logic by removing the internal counter altogether. It is now incrementer's responsibility to extract it's current incremenation sequence, and increment it's value on a filename.

Previously, if user passed an already incremented filename, it'd produce silly results like filename (1) (1) (1).txt. Now it correctly picks up, increments, and replaces the already existing index.

I also added underscoreIncrementer as a named export for people to simply switch to that if they prefer, as that seems to be the next most wanted incrementation format ((1) for user space, _1 for more backend, database, etc usage). Or at least that's what I need :)

+166 -25

0 comment

6 changed files

pr created time in an hour

startedsindresorhus/awesome-npm

started time in an hour

startedsindresorhus/refined-github

started time in an hour

startedsindresorhus/awesome-nodejs

started time in an hour

startedsindresorhus/awesome-nodejs

started time in an hour

startedsindresorhus/ky

started time in an hour

startedsindresorhus/got

started time in an hour

startedsindresorhus/type-fest

started time in an hour

startedsindresorhus/awesome

started time in an hour

startedsindresorhus/array-move

started time in an hour

fork SteadyHua/terminal-link

Create clickable links in the terminal

fork in an hour

startedsindresorhus/terminal-link

started time in an hour

startedsindresorhus/Regex

started time in an hour

startedsindresorhus/awesome

started time in an hour

startedsindresorhus/github-markdown-css

started time in 2 hours

startedsindresorhus/pageres

started time in 2 hours

startedsindresorhus/terminal-image

started time in 2 hours