New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

qs-js-utils

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qs-js-utils

``` yarn add qs-js-lib

latest
Source
npmnpm
Version
0.0.48
Version published
Maintainers
1
Created
Source

usage

yarn add qs-js-lib

import { gzReader } from 'qs-js-utils';

const reader = new GzReader(fileName);
    await reader.readStream(data => {
    return onDataRow(data);
});

import { getDay } from 'qs-js-utils';

getDay('2021-06-27T00:00:00.000Z') // = 2021-06-27


isTimeWithinRange(new Date(), 3000) // check if a certain date object is within recent time window

use gzWriter

const gzWriter = new GzWriter(`./fileName.gz`);
const data = [123, 456]
await gzWriter.writeMany(data);
gzWriter.end();
await gzWriter.waitForFinish();

dev

npm i -g yarn
yarn
npm run tsc
npm test

FAQs

Package last updated on 07 Oct 2024

Did you know?

Socket

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.

Install

Related posts