sindresorhus / date-time
Pretty UTC datetime: `2014-01-09 0601`
☆32Updated 2 years ago
Related projects: ⓘ
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Strip the final newline character from a string/buffer☆33Updated 4 months ago
- Check if a path is inside another path☆37Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Check if a value is a regular expression☆24Updated 2 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆36Updated 10 months ago
- Create a MD5 hash with hex encoding☆45Updated 10 months ago
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Callback wrapping utility☆55Updated 7 months ago
- Detect the dominant newline character of a string☆55Updated 11 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Slice a string with ANSI escape codes☆47Updated 4 months ago
- Get a random key from an object☆18Updated 2 months ago
- Lowercase the keys of an object☆41Updated last year
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆45Updated 2 years ago
- Get a random property from an object☆15Updated 2 months ago
- Check if a file path is a binary file☆41Updated 4 months ago
- Get the first path that exists on disk of multiple paths☆58Updated last year
- Turn an object into a string of HTML attributes☆49Updated last year
- Check if a path is the current working directory☆19Updated 3 years ago
- Check if argv has a specific flag☆90Updated 3 years ago
- Track the list of currently unhandled promise rejections☆24Updated 5 years ago
- Check if a value is an object☆40Updated 3 years ago
- Check if a Buffer/Uint8Array is a GIF image☆29Updated 2 years ago
- fs read and write streams based on minipass☆21Updated 2 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆37Updated 3 years ago
- Trim newlines from the start and/or end of a string☆48Updated last year
- Extract the article title of a HTML document☆53Updated 2 years ago
- Gracefully restore the CLI cursor on exit☆34Updated last month