@limitless.claver/stringify
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,49 +6,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Stringify = exports.Ncrypt = void 0; | ||
const ncrypt_1 = __importDefault(require("./ncrypt")); | ||
exports.Ncrypt = ncrypt_1.default; | ||
const stringify_1 = __importDefault(require("./stringify")); | ||
// const encrypter = new Stringify(); | ||
// | ||
// const encrypted = encrypter.encrypt('This a sample text that could be scrambled and encrypted anyhow'); | ||
// console.log({encrypted}); | ||
// | ||
// const decrypted = encrypter.decrypt(encrypted); | ||
// console.log({decrypted}) | ||
const s = stringify_1.default.toEncryptedString({ | ||
"name": "John Doe", | ||
"age": 30, | ||
"email": "john.doe@example.com", | ||
"address": { | ||
"street": "123 Main St", | ||
"city": "Anytown", | ||
"state": "CA", | ||
"zip": "12345" | ||
}, | ||
"phoneNumbers": [ | ||
{ | ||
"type": "home", | ||
"number": "555-555-5555" | ||
}, | ||
{ | ||
"type": "work", | ||
"number": "666-666-6666" | ||
} | ||
], | ||
"familyMembers": [ | ||
{ | ||
"name": "Jane Doe", | ||
"relationship": "Spouse", | ||
"age": 28 | ||
}, | ||
{ | ||
"name": "Johnny Doe", | ||
"relationship": "Child", | ||
"age": 5 | ||
} | ||
], | ||
"hobbies": [ | ||
"Reading", | ||
"Hiking", | ||
"Cooking" | ||
] | ||
}); | ||
console.log(s); | ||
console.log(stringify_1.default.toLowerCase('JamesIsAnInterestingPerson')); | ||
exports.Stringify = stringify_1.default; |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "String helper method for all string and JSON manipulations", | ||
@@ -13,3 +13,3 @@ "main": "./dist/index.js", | ||
"start": "tsc && node dist/index.js", | ||
"dev": "ts-node-dev --respawn --transpileOnly src/index.ts", | ||
"dev": "ts-node-dev --respawn --transpileOnly ../test/index.ts", | ||
"build": "tsc" | ||
@@ -23,3 +23,3 @@ }, | ||
"author": { | ||
"name": "Peter Claver", | ||
"name": "Peter Claver", | ||
"email": "limitless.claver@gmail.com" | ||
@@ -35,4 +35,5 @@ }, | ||
"dependencies": { | ||
"@limitless.claver/stringify": "^1.0.0", | ||
"dotenv": "^16.0.3" | ||
} | ||
} |
@@ -0,51 +1,7 @@ | ||
import Ncrypt from "./ncrypt"; | ||
import Stringify from "./stringify"; | ||
// const encrypter = new Stringify(); | ||
// | ||
// const encrypted = encrypter.encrypt('This a sample text that could be scrambled and encrypted anyhow'); | ||
// console.log({encrypted}); | ||
// | ||
// const decrypted = encrypter.decrypt(encrypted); | ||
// console.log({decrypted}) | ||
const s: string = Stringify.toEncryptedString({ | ||
"name": "John Doe", | ||
"age": 30, | ||
"email": "john.doe@example.com", | ||
"address": { | ||
"street": "123 Main St", | ||
"city": "Anytown", | ||
"state": "CA", | ||
"zip": "12345" | ||
}, | ||
"phoneNumbers": [ | ||
{ | ||
"type": "home", | ||
"number": "555-555-5555" | ||
}, | ||
{ | ||
"type": "work", | ||
"number": "666-666-6666" | ||
} | ||
], | ||
"familyMembers": [ | ||
{ | ||
"name": "Jane Doe", | ||
"relationship": "Spouse", | ||
"age": 28 | ||
}, | ||
{ | ||
"name": "Johnny Doe", | ||
"relationship": "Child", | ||
"age": 5 | ||
} | ||
], | ||
"hobbies": [ | ||
"Reading", | ||
"Hiking", | ||
"Cooking" | ||
] | ||
} | ||
) as string; | ||
console.log(s) | ||
console.log(Stringify.toLowerCase('JamesIsAnInterestingPerson')) | ||
export { | ||
Ncrypt, | ||
Stringify | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22405
2
14
493