
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
excel-style-dataformatter
Advanced tools
#Excel-Style Javascript Data Formatter
##Current version supports
#Install
npm install excel-style-dataformatter
bower install excel-style-dataformatter
#Usage
##CommonJS
import DataFormatter from 'excel-style-dataformatter';
const dataFormatter = new DataFormatter();
const result = dataFormatter.format('99', 'Number', 'Currency');
####Locales
import DataFormatter from 'excel-style-dataformatter';
import ru from 'excel-style-dataformatter/lib/ru';
// Create instance with defined locales
const options = { locales: [ru] };
const dataFormatter = new DataFormatter(options);
// Switch locale
dataFormatter.setLocale('ru');
const result = dataFormatter.format('99', 'Number', 'Currency');
##Browser
<script src="excel-style-dataformatter/lib/index.js"></script>
<script src="excel-style-dataformatter/lib/locales/ru.js"></script>
<script>
// Create instance
var dataFormatter = new window.DataFormatter({
locales: [window.DataFormatter_ru]
});
// Default locale
document.write(dataFormatter.format('123.44', 'Number', 'Currency').value);
// Switch to russian
dataFormatter.setLocale('ru');
document.write(dataFormatter.format('123.44', 'Number', 'Currency').value);
</script>
##AMD
<script>
require(['excel-style-dataformatter/lib/index', 'excel-style-dataformatter/lib/locales/ru'], function() {
require(['DataFormatter', 'DataFormatter_ru'], function(DataFormatter, ru) {
// Create instance
var dataFormatter = new DataFormatter({
locales: [ru]
});
// Default locale
document.write(dataFormatter.format('99', 'Number', 'Currency').value);
// Switch to russian
dataFormatter.setLocale('ru');
document.write(dataFormatter.format('99', 'Number', 'Currency').value);
});
});
</script>
#Available options
locale {string} - default locale
locales {string} - defined locales
UTCOffset {number|null} - UTC offset for dates in minutes
transformCode {function}
debug {boolean}
#API
.format(value, type, format)
.defineLocales(locales)
.setLocale(locale)
.setUTCOffset(offset)
FAQs
Excel-Style Javascript Data Formatter
The npm package excel-style-dataformatter receives a total of 1,629 weekly downloads. As such, excel-style-dataformatter popularity was classified as popular.
We found that excel-style-dataformatter 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.