Convert to Milliseconds (convert-to-ms)
A simple Visual Studio Code extension that converts custom time units into milliseconds.
✨ Features
Type a token followed by = and it will be automatically converted into milliseconds:
sim= → seconds in ms (1sim = 1000 )
mim= → minutes in ms (1mim = 60000 )
him= → hours in ms (1him = 3600000 )
dim= → days in ms (1dim = 86400000 )
wim= → weeks in ms (1wim = 604800000 )
moim= → months in ms (30-day reference: 1moim = 2592000000 )
yim= → years in ms (1yim = 31536000000 )
You can also prefix with a number:
4mim= → 240000
2him= → 7200000
⌨️ Usage
- Type a token like
5mim= in your editor.
- As soon as you type the
= , the token is replaced with its millisecond equivalent.
⚡ No command palette or keyboard shortcut required.
📦 Installation
code --install-extension convert-to-ms-0.0.1.vsix
🛠 Development
- Clone the repository.
- Install dependencies:
npm install
- Build:
npm run compile
- Open the folder in VS Code and press
F5 to run the Extension Development Host for debugging.
📝 License
MIT License
| |