
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
stevila-z-besedo
Advanced tools
#Samodejni zapis števil z besedo. Node.js module to convert numbers/dates/digits in to text (Slovene language).
Node.js modul za pretvorbo števil/datumov/cifer v tekst.
Povezava do spletnega API-ja, ki uporablja ta modul: stevilazbesedo.sebenik.com
##Zapis
Celih števil: 3462543 → 'tri milijone štiristo dvainšestdeset tisoč petsto triinštirideset'
Decimalnih števil: 2,108 → 'dve celi sto osem'
Negativnih števil: -1000 → 'minus tisoč'
Znanstvenih števil: 1,02e2 → 'sto dve'
Datumov: 1.4.2000 → 'prvi četrti dva tisoč'
Cifer: 46492 → 'štiri šest štiri devet dve'
##Install
npm install stevila-z-besedo
##Uporaba
var szb = require("stevila-z-besedo")
var converter = new szb(options);
var rezultat = converter.convert(data);
###options
###data Število/datum oz. vektor(array) števil/datumov, ki jih želimo zapisati z besedo.
| vDD/MM/LLLL | D/M/LLLL | DD/MM/ | D/M/ | DD/ | D/ |
| DD.MM.LLLL | D.M.LLLL | DD.MM. | D.M. | DD. | D. |
| DD-MM-LLLL | D-M-LLLL | DD-MM- | D-M- | DD- | D- |
###rezultat Vektor(array) besed pretvorjenih števil/datumov v enakem vrstnem redu kot so bili podani.
##Primer
###števila
var szb = require("stevila-z-besedo");
var numberConverter = new szb({
"type": "number",
"decimalniSimbolPika": true
});
var stevila = [1, -1000, 2.12e7, 0.31];
var zBesedo = numberConverter.convert(stevila);
console.log(zBesedo);
// [ 'ena',
// 'minus tisoč',
// 'enaindvajset milijonov dvesto tisoč',
// 'nič cela enaintrideset stotink' ]
###datumi
var szb = require("stevila-z-besedo");
var dateConverter = new szb({
"type": "date"
});
var datumi = ["1.1.2000", "12/7/", "12.", "03-11-", "31.2."];
var zBesedo = dateConverter.convert(datumi);
console.log(zBesedo);
// [ 'prvi prvi dva tisoč',
// 'dvanajsti sedmi',
// 'dvanajsti',
// 'tretji enajsti',
// '31.2. is not a valid date form.' ]
###cifre
var szb = require("stevila-z-besedo");
var digitConverter = new szb({
"type": "digit"
});
var stevila = [12345, "-7,81"];
var zBesedo = digitConverter.convert(stevila);
console.log(zBesedo);
// [ 'ena dve tri štiri pet',
// 'minus sedem celih osem ena' ]
Žiga Šebenik ziga@sebenik.com
FAQs
Zapis števil, datumov in cifer z besedo.
We found that stevila-z-besedo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.