Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
d3-quarterly
Advanced tools
## 2017 Ændrew Rininsland
d3-quarterly
will parse a "quarter" string (e.g., "Q3 2017") and return a date object,
indicating either the lower or upper bounds of a quarter.
$ npm install d3-quarterly
import quarterly from 'd3-quarterly'
test('General use', t => { const lower = quarterly('Q1 2017', false); const upper = quarterly('Q1 2017', true); t.is(lower.toISOString(), '2017-01-01T00:00:00.000Z'); t.is(upper.toISOString(), '2017-03-31T23:59:59.999Z'); });
### API
1. `quarterly(quarterString: string, returnBoundsEnd: boolean = false)`
* quarterString
- A string in the format 'QN YY(YY)?' where "N" is an integer 1-4 (incl.) and "YY(YY)?" is either a 2- or 4-integer year value
* returnBoundsEnd
- By default returns the lower bounds (i.e., the start) of a quarter. Pass `true` to return the upper bounds.
FAQs
Parse quarterly date strings to timestamp ranges
The npm package d3-quarterly receives a total of 0 weekly downloads. As such, d3-quarterly popularity was classified as not popular.
We found that d3-quarterly 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.