sindresorhus


Sindre Sorhus
  • Clear a module from the `require` cache

    published 3.0.0 5 years ago
  • Check if your code is running as an npm script

    published 6.0.0 3 years ago
  • Check if your code is running on Travis

    published 3.0.0 2 months ago
  • - For arrays: https://github.com/stream-utils/stream-to-array - For strings: https://github.com/stream-utils/raw-body

    published 2.0.0 10 years ago
  • xterm 256 color palette

    published 1.0.1 6 years ago
  • Convert RGB(A) color to HEX

    published 4.1.0 8 months ago
  • Parse a cookie for use in PhantomJS

    published 2.0.0 5 years ago
  • ES2015 Number.isFinite() ponyfill

    published 2.0.0 3 years ago
  • Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`

    published 3.0.0 3 years ago
  • Strip console and debugger statements from JavaScript code

    published 2.0.0 6 years ago
  • Strip comments from JSON. Lets you use comments in your JSON files!

    published 2.0.0 8 years ago
  • Check if your code is running on Heroku

    published 3.0.0 2 years ago
  • Escape a string for use in AppleScript

    published 3.0.0 3 years ago
  • A safer `.hasOwnProperty()`

    published 3.1.0 2 years ago
  • Convert seconds to a human readable string: 165392 → 1d 21h 56m 32s

    published 1.0.1 9 years ago
  • Get the gzipped size of a string or buffer

    published 7.0.0 2 years ago
  • Check whether a package name is available on npm and bower

    published 2.0.0 5 years ago
  • Clone and modify a RegExp instance

    published 3.0.0 3 years ago
  • Check whether a RegExp flag is supported

    published 2.0.0 3 years ago
  • Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`

    published 4.2.0 2 years ago
  • Check if a URL is absolute

    published 4.0.1 3 years ago
  • Check if a URL is relative

    published 4.0.0 2 years ago
  • Platform conditional utility for cross-platform Titanium apps

    published 1.0.1 6 years ago
  • Rate reminder for Titanium apps

    published 1.0.1 6 years ago
  • Generate random numbers that are consecutively unique

    published 4.0.0 22 days ago
show more packages