An open API service indexing awesome lists of open source software.

https://github.com/truemedia/st-basename

Create a basename for file based on the time right now (powered by space time)
https://github.com/truemedia/st-basename

Last synced: 3 months ago
JSON representation

Create a basename for file based on the time right now (powered by space time)

Awesome Lists containing this project

README

        

# St basename
Create a basename for file based on the time right now (powered by space time)

## Installation

NPM
```bash
npm i --save st-basename
```

Yarn
```bash
yarn add st-basename
```

## Usage
```js
const bn = require('st-basename');
bn(); // YYYY-MM-DD_HH-MM-SS
bn('txt'); // YYYY-MM-DD_HH-MM-SS.txt
```