For Internet Explorer 9 and below, you’ll need to include the base64 library.
console.log(ved_decode('0CFYQFjAG'));
// Prints:
// Object {1: 86, 2: 22, 6: 6}
Copyright 2013 Deed Poll Office Ltd, UK
VED DECODE is free software: you can redistribute it and/or modify it under the terms of the Apache License, Version 2.0 (the "License"). You may not use this work except in compliance with the License.
You should have received a copy of the License in the LICENSE file, along with this program. If not, you can get a copy of the license at: http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.