strjson

1.1.0 • Public • Published

StrJson

What is strjson?

StrJson is a simple json thing... You can convert from string json :P

For example:

var strjson = require('strjson');
 
strjson.toJSON.array('(1|2|3|4|data|idk|this is a array lol)', (res) => {
    console.log(res)
})

This code will log : ["1", "2", "3", "4", "data", "idk", "this is a array lol")

You can only arrays? Nooooo, you can do the same thing with objects!

var strjson = require('strjson');
 
strjson.toJSON.object('(andrew:da|vieruu:nu)', (res) => {
    console.log(res)
})

This code will log : {andrew:da, vieruu:nu}

Dependents (0)

Package Sidebar

Install

npm i strjson

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

1.92 kB

Total Files

5

Last publish

Collaborators

  • andrew221