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)
- Host: GitHub
- URL: https://github.com/truemedia/st-basename
- Owner: Truemedia
- License: mit
- Created: 2019-03-19T15:11:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T15:35:56.000Z (about 6 years ago)
- Last Synced: 2025-02-14T14:41:10.718Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```