Nostradamus Predicting Maelstroms
    Wondering what’s next for npm?Check out our public roadmap! »

    snapmatic

    1.1.0 • Public • Published

    Snapmatic

    With this package you can get information of GTA V Snapmatic pictures like Title, Description and the location.


    Example

    Code

    const Snapmatic = require("snapmatic");
     
    new Snapmatic("file Path here", (err, data) => {
        console.log("Title:",data.IPictureTitle);
        console.log("Desc:",data.IPictureDesc);
        console.log("Header:", data.IPictureHeader);
        console.log("Data:", data.ISnapmatic);
        // Save the Image
        data.saveToFile("image.jpg", function(err){
          if(err == null)
            console.log("Saved.");
        });
    });

    Return

    Title: Strawberry
    Desc:
    Header: 10/18/17 06:32:02
    Data: {
      loc: { x: 272.25247, y: -1267.22839, z: 29.14291 },
      area: 'STRAW',
      street: 0,
      nm: '',
      rds: '',
      scr: 1,
      sid: '0x0',
      crewid: 0,
      mid: '',
      mode: 'SP',
      meme: false,
      mug: false,
      uid: 0,
      time: { hour: 0, minute: 0, second: 0, day: 8, month: 4, year: 12 },
      creat: 0,
      slf: false,
      drctr: false,
      rsedtr: false
    }
    

    Variables & Functions

    // Returns the Title
    Snapmatic.IPictureTitleString
    // Returns the Description
    Snapmatic.IPictureDescString
    // Returns the Snapmatic Header
    Snapmatic.IPictureHeaderString
    // Returns the Snapmatic Data
    Snapmatic.ISnapmaticJSON
    // Returns the raw JPEG Buffer
    Snapmatic.IJPEGImageBuffer
    // Returns a Base64 Image
    Snapmatic.getBase64Image()String
    // Save JPEG to file
    Snapmtic.saveToFile(pathString, callback: (err: Error) => any)


    Install

    npm i snapmatic

    DownloadsWeekly Downloads

    7

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • avatar