Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Wrapper for momentjs with formatting support for BCE dates.
Also it allows to construct the object specifying only millennium (one digit), century (two digits), decade (three digits)
Please refer to https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Other
bigmoment() // same as moment()
bigmoment(new Date()) // same as moment(new Date())
bigmoment(1234567890000) // same as moment(1234567890000) -> 2009-02-13T23:31:30+00:00
bigmoment('1') // 1000-01-01...
bigmoment('0') // 0000-01-01...
bigmoment('-0') // 0000-01-01...
bigmoment('-1') // -1000-01-01...
bigmoment('12') // 1200-01-01...
bigmoment('127') // 1270-01-01...
bigmoment('1492') // 1492-01-01...
bigmoment('-1492') // -1492-01-01...
bigmoment('1492-01') // 1492-01-01...
bigmoment('1999-12-31') // 1999-12-31T00:00...
bigmoment('1999-12-31 23') // 1999-12-31T23:00...
bigmoment('1999-12-31 23:59') // 1999-12-31T23:59:00...
bigmoment('1000').century() // 10
bigmoment('00').century({format: 'ordinal'}), // 1st CE
bigmoment('-2340').century({format: 'ordinal'}), // 24th BCE
FAQs
Date manipulation that can track the age of the universe
The npm package bigmoment receives a total of 2 weekly downloads. As such, bigmoment popularity was classified as not popular.
We found that bigmoment 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.