Skip to content
View pratyushly's full-sized avatar
🎯
Focusing
🎯
Focusing

Block or report pratyushly

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. ytid ytid Public

    Create URL friendly short IDs just like YouTube

    TypeScript 7 1

  2. This code helps convert a .csv file ... This code helps convert a .csv file (containing a single column) into an array stored in a .ts file. It reads data from a file named 'data.csv' and creates a new TypeScript file 'csvData.ts' containing the data in an array named 'csvData'. The input file's name can be changed from line #4 and the array's name can be changed from line #17. To get data in a JavaScript file, simply modify the extension of the output file's name in line #20 from .ts to .js. Possible Error -> All the array values have a comma at the end. Solution -> Modify the delimitator from '\n' to ',' in line #11.
    1
    const fs = require('fs');
    2
    
                  
    3
    // Read the csv data
    4
    fs.readFile('data.csv', 'utf-8', (error, csvData) => {
    5
      if (error) {
  3. accountid accountid Public

    Create URL friendly short IDs just like YouTube

    TypeScript

  4. ts-error-translator ts-error-translator Public

    Forked from mattpocock/ts-error-translator

    VSCode extension to turn TypeScript errors into plain English

    TypeScript