
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
num-conv-string
Advanced tools
This project creates the num-conv-string library in umd format. The library is available in npmjs. The file index.js contains 2 function numToWord() and wordToNum(). The source code for the two functions was copied from https://webpack.js.org/guides/autho
This project creates the num-conv-string library in umd format. The library is available in npmjs. The file index.js contains 2 function numToWord() and wordToNum(). The source code for the two functions was copied from https://webpack.js.org/guides/author-libraries/
npm installnpm run build to create the library. The library is available in the lib folder.npm login, npm publish and npm logout.The library can be used with node in the commonjs format. In the test folder are some examples on how to use the library.
numConvString.wordToNum('Eins')
numConvString.numToWord(1)
html lang="de">
<head>
<title>Webpack Library Beispiel - Übersetzung von Zahlen</title>
<meta charset="utf-8"/>
<script type='text/javascript' src='https://unpkg.com/lodash@4.16.6'></script>
<!-- <script src="https://unpkg.com/num-conv-string"></script> -->
</head>
<body>
<div id='root'>
</div>
<script type='text/javascript' src='../../lib/num-conv-string.umd.min.js'></script>
<script type='text/javascript'>
document.getElementById('root').innerHTML = " Ein Browser Beispiel für den Aufruf einer API: " +
"<br> <br>Resultat: " +
"<br> übersetze wordToNum('Eins') zu " + numConvString.wordToNum('Eins') +
"<br> übersetze wordToNum('Zwei') zu " + numConvString.wordToNum('Zwei') +
"<br> übersetze numToWord(1) zu " + numConvString.numToWord(1) +
"<br> übersetze numToWord(2) zu " + numConvString.numToWord(2) +
"" ;
</script>
</body>
</html>
Since the umd format is using a window object, this object has to be provided.
global['window'] = {};
var numConvString = require('../../lib/num-conv-string.umd.js');
console.log(numConvString.wordToNum('Zwei'));
There are two test projects for this library:
https://github.com/mbachmann/es6-es5-lib-test https://github.com/mbachmann/num-conv-string-test
FAQs
This project creates the num-conv-string library in umd format. The library is available in npmjs. The file index.js contains 2 function numToWord() and wordToNum(). The source code for the two functions was copied from https://webpack.js.org/guides/autho
We found that num-conv-string 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.