
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.
parse-times
Advanced tools
Parsing waktu dan dapatkan result yang komplit!
Menggunakan library dari MomentJs.
List of Function :
// get => waktu saat ini => Objcet
// get => weton berdasarkan waktu => String
// get => waktu berdasarkan id => Objcet
// get => Realtive waktu => String
// get => Calendar waktu => String
Install with npm:
$ npm install parse-times
With require:
const parseTimes = require("parse-times");
see example.js for details.
if you want to change the region, you must read the documentation MomentJs.
parseTimes.set('id') // Default => "id"
const getTime = parseTimes.getTime() // Time Result => Object
const getTimeFormat = parseTimes.getTime({format: "DD/MM/YYYY hh:mm:ss a"}) // => 13/11/2022 19:50:18 malam
const timeId = new Date().getTime() || 1668343818991 // Get Time ID
const getTimeById = parseTimes.getTimeById(timeId) // Use Time ID && Time Result => Object
const getTimeByIdFormat = parseTimes.getTimeById(timeId, {format: "DD/MM/YYYY hh:mm:ss a"}) // => 13/11/2022 19:50:18 malam
/*
Time Result :
{
millisecond: 991,
second: 18,
minute: 50,
hour: 19,
date: 13,
day: 0,
dayed: 'Min',
days: 'Minggu',
month: 11,
monthy: 'Nov',
months: 'November',
year: 22,
years: 2022,
situasion: 'malam',
full: {
ll: '13 Nov 2022',
LL: '13 November 2022',
lll: '13 Nov 2022 pukul 19.50',
LLL: '13 November 2022 pukul 19.50',
llll: 'Min, 13 Nov 2022 pukul 19.50',
LLLL: 'Minggu, 13 November 2022 pukul 19.50'
},
region: { code: 'id', name: 'Indonesia', flag: '🇮🇩' },
timeId: 1668343818991
}
*/
const getWeton = parseTimes.getWeton(17, 11, 2022) // Date, Month, Year (required)
// => Pahing
const timeId = new Date().getTime() || 1668343818991 // Get Time ID
const getRelativeById = parseTimes.getRelative(timeId) // => 14 menit yang lalu
const getRelativeBySeconds = parseTimes.getRelative(timeId, {input: 10, based: 'seconds'}) // => dalam beberapa detik
const getRelativeMinutes = parseTimes.getRelative(timeId, {input: 10, based: 'minutes'}) // => dalam 10 menit
const getRelativeHours = parseTimes.getRelative(timeId, {input: 10, based: 'hours'}) // => dalam 10 jam
const getRelativeDays = parseTimes.getRelative(timeId, {input: 10, based: 'days'}) // => dalam 10 hari
const getRelativeMonths = parseTimes.getRelative(timeId, {input: 10, based: 'months'}) // => dalam 10 bulan
const getRelativeYears = parseTimes.getRelative(timeId, {input: 10, based: 'years'}) // => dalam 10 tahun
const timeId = new Date().getTime() || 1668343818991 // Get Time ID
const getCalendarById = parseTimes.getCalendar(timeId) // => Hari ini pukul 19.50
const getCalendarBySeconds = parseTimes.getCalendar(timeId, {input: 10, based: 'seconds'}) // => Hari ini pukul 20.09
const getCalendarMinutes = parseTimes.getCalendar(timeId, {input: 10, based: 'minutes'}) // => Hari ini pukul 20.19
const getCalendarHours = parseTimes.getCalendar(timeId, {input: 10, based: 'hours'}) // => Besok pukul 06.09
const getCalendarDays = parseTimes.getCalendar(timeId, {input: 10, based: 'days'}) // => 23/11/2022
const getCalendarMonths = parseTimes.getCalendar(timeId, {input: 10, based: 'months'}) // => 13/09/2023
const getCalendarYears = parseTimes.getCalendar(timeId, {input: 10, based: 'years'}) // => 13/11/2032
Install dependencies:
npm install
Run tests:
npm run test
Code released under the Apache license.
FAQs
Simple parsing times and get complete times
The npm package parse-times receives a total of 1 weekly downloads. As such, parse-times popularity was classified as not popular.
We found that parse-times 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.